|
- {% set distribution = salt['grains.get']('lsb_distrib_codename') %}
- {% set distribution_updates = salt['grains.get']('lsb_distrib_codename') ~ '/updates' %}
- {% set arch = salt['grains.get']('osarch').split(' ') %}
- {% set apt = salt['grains.filter_by']({
- 'Debian': {
- 'pkgs': ['unattended-upgrades'],
- 'confd_dir': '/etc/apt/apt.conf.d',
- 'unattended_config': '50unattended-upgrades',
- 'periodic_config': '10periodic',
- 'sources_list_dir': '/etc/apt/sources.list.d',
- 'remove_sources_list': false,
- 'clean_sources_list_d': false,
- 'preferences_dir': '/etc/apt/preferences.d',
- 'preferences': {},
- 'remove_preferences': false,
- 'clean_preferences_d': false,
- 'remove_apt_conf': false,
- 'clean_apt_conf_d': false,
- 'apt_conf_d': {},
- 'default_keyserver': 'pool.sks-keyservers.net',
- 'default_url': 'http://deb.debian.org/debian/',
- 'default_keyring_package': 'debian-archive-keyring',
- 'repositories': {
- 'sane_default': {
- 'distro': distribution,
- 'url': 'http://deb.debian.org/debian/',
- 'arch': arch,
- 'comps': ['main'],
- },
- 'security-stable': {
- 'distro': distribution_updates,
- 'url': 'http://security.debian.org/',
- 'arch': arch,
- 'comps': ['main'],
- },
- },
- },
- }, merge=salt['pillar.get']('apt:lookup'), default='Debian') %}
|