|
1 | 1 | {% set distribution = salt['grains.get']('lsb_distrib_codename') %} |
2 | | -{% set distribution_updates = salt['grains.get']('lsb_distrib_codename') ~ '/updates' %} |
3 | 2 | {% set arch = salt['grains.get']('osarch').split(' ') %} |
4 | 3 | {% set apt = salt['grains.filter_by']({ |
5 | 4 | 'Debian': { |
|
28 | 27 | 'comps': ['main'], |
29 | 28 | }, |
30 | 29 | 'security-stable': { |
31 | | - 'distro': distribution_updates, |
| 30 | + 'distro': distribution ~ '/updates', |
32 | 31 | 'url': 'http://security.debian.org/', |
33 | 32 | 'arch': arch, |
34 | 33 | 'comps': ['main'], |
35 | 34 | }, |
| 35 | + 'default-updates': { |
| 36 | + 'distro': distribution ~ '-updates', |
| 37 | + 'url': 'http://deb.debian.org/debian/', |
| 38 | + 'arch': arch, |
| 39 | + 'comps': ['main'], |
| 40 | + }, |
| 41 | + }, |
| 42 | + }, |
| 43 | + |
| 44 | + 'Ubuntu': { |
| 45 | + 'pkgs': ['unattended-upgrades'], |
| 46 | + 'confd_dir': '/etc/apt/apt.conf.d', |
| 47 | + 'unattended_config': '50unattended-upgrades', |
| 48 | + 'periodic_config': '10periodic', |
| 49 | + 'sources_list_dir': '/etc/apt/sources.list.d', |
| 50 | + 'remove_sources_list': false, |
| 51 | + 'clean_sources_list_d': false, |
| 52 | + 'preferences_dir': '/etc/apt/preferences.d', |
| 53 | + 'preferences': {}, |
| 54 | + 'remove_preferences': false, |
| 55 | + 'clean_preferences_d': false, |
| 56 | + 'remove_apt_conf': false, |
| 57 | + 'clean_apt_conf_d': false, |
| 58 | + 'apt_conf_d': {}, |
| 59 | + 'default_keyserver': 'keyserver.ubuntu.com', |
| 60 | + 'default_url': 'http://archive.ubuntu.com/ubuntu/', |
| 61 | + 'default_keyring_package': 'ubuntu-keyring', |
| 62 | + 'repositories': { |
| 63 | + 'default': { |
| 64 | + 'distro': distribution, |
| 65 | + 'url': 'http://archive.ubuntu.com/ubuntu/', |
| 66 | + 'arch': arch, |
| 67 | + 'comps': ['main'], |
| 68 | + }, |
| 69 | + 'default-security': { |
| 70 | + 'distro': distribution ~ '-security', |
| 71 | + 'url': 'http://security.ubuntu.com/ubuntu/', |
| 72 | + 'arch': arch, |
| 73 | + 'comps': ['main'], |
| 74 | + }, |
| 75 | + |
| 76 | + 'default-updates': { |
| 77 | + 'distro': distribution ~ '-updates', |
| 78 | + 'url': 'http://archive.ubuntu.com/ubuntu/', |
| 79 | + 'arch': arch, |
| 80 | + 'comps': ['main'], |
| 81 | + }, |
| 82 | + |
36 | 83 | }, |
37 | 84 | }, |
38 | | -}, merge=salt['pillar.get']('apt:lookup'), default='Debian') %} |
| 85 | + |
| 86 | +}, grain='os', merge=salt['pillar.get']('apt:lookup'), default='Debian') %} |
| 87 | + |
0 commit comments