Skip to content

Commit a34d721

Browse files
authored
Merge pull request #45 from jdkelleher/add-ubuntu-map.jinja
Add ubuntu map.jinja
2 parents 29c8a43 + 3808487 commit a34d721

File tree

1 file changed

+52
-3
lines changed

1 file changed

+52
-3
lines changed

apt/map.jinja

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{% set distribution = salt['grains.get']('lsb_distrib_codename') %}
2-
{% set distribution_updates = salt['grains.get']('lsb_distrib_codename') ~ '/updates' %}
32
{% set arch = salt['grains.get']('osarch').split(' ') %}
43
{% set apt = salt['grains.filter_by']({
54
'Debian': {
@@ -28,11 +27,61 @@
2827
'comps': ['main'],
2928
},
3029
'security-stable': {
31-
'distro': distribution_updates,
30+
'distro': distribution ~ '/updates',
3231
'url': 'http://security.debian.org/',
3332
'arch': arch,
3433
'comps': ['main'],
3534
},
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+
3683
},
3784
},
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

Comments
 (0)