Skip to content

Commit

Permalink
refactor: Merge branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbertoli committed May 28, 2019
2 parents 530e22c + a34d721 commit 1496eed
Showing 1 changed file with 58 additions and 18 deletions.
76 changes: 58 additions & 18 deletions apt/map.jinja
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% 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': {
Expand All @@ -21,26 +20,67 @@
'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'],
},
'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'],
},
'default-updates': {
'distro': distribution ~ '-updates',
'url': 'http://deb.debian.org/debian/',
'arch': arch,
'comps': ['main'],
},
},
},
}, merge=salt['grains.filter_by']({
}, grain='oscodename', merge=salt['grains.filter_by']({
'Ubuntu': {
'keyring_package': 'ubuntu-keyring'
'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': 'keyserver.ubuntu.com',
'default_url': 'http://archive.ubuntu.com/ubuntu/',
'default_keyring_package': 'ubuntu-keyring',
'repositories': {
'default': {
'distro': distribution,
'url': 'http://archive.ubuntu.com/ubuntu/',
'arch': arch,
'comps': ['main'],
},
'default-security': {
'distro': distribution ~ '-security',
'url': 'http://security.ubuntu.com/ubuntu/',
'arch': arch,
'comps': ['main'],
},
'default-updates': {
'distro': distribution ~ '-updates',
'url': 'http://archive.ubuntu.com/ubuntu/',
'arch': arch,
'comps': ['main'],
},
},
},
}, grain='os', merge=salt['grains.filter_by']({
'Mint': {
'keyring_package': 'linuxmint-keyring'
'keyring_package': 'linuxmint-keyring'
},
}, merge=salt['pillar.get']('apt:lookup'), default='Debian'))) %}
}, grain='oscodename', merge=salt['pillar.get']('apt:lookup'), default='Debian') %}

0 comments on commit 1496eed

Please sign in to comment.