Saltstack Official Apt Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

map.jinja 1.3KB

9 years ago
12345678910111213141516171819202122232425262728293031323334
  1. {% set distribution = salt['grains.get']('lsb_distrib_codename') %}
  2. {% set distribution_updates = salt['grains.get']('lsb_distrib_codename') ~ '/updates' %}
  3. {% set arch = salt['grains.get']('osarch').split(' ') %}
  4. {% set apt = salt['grains.filter_by']({
  5. 'Debian': {
  6. 'pkgs': ['unattended-upgrades'],
  7. 'confd_dir': '/etc/apt/apt.conf.d',
  8. 'unattended_config': '50unattended-upgrades',
  9. 'periodic_config': '10periodic',
  10. 'sources_list_dir': '/etc/apt/sources.list.d',
  11. 'remove_sources_list': false,
  12. 'clean_sources_list_d': false,
  13. 'preferences_dir': '/etc/apt/preferences.d',
  14. 'remove_preferences': false,
  15. 'clean_preferences_d': false,
  16. 'default_keyserver': 'pool.sks-keyservers.net',
  17. 'default_url': 'http://httpredir.debian.org/debian/',
  18. 'repositories': {
  19. 'sane_default': {
  20. 'distro': distribution,
  21. 'url': 'http://httpredir.debian.org/debian/',
  22. 'arch': arch,
  23. 'comps': ['main'],
  24. },
  25. 'security-stable': {
  26. 'distro': distribution_updates,
  27. 'url': 'http://security.debian.org/',
  28. 'arch': arch,
  29. 'comps': ['main'],
  30. },
  31. },
  32. },
  33. }, merge=salt['pillar.get']('apt:lookup'), default='Debian') %}