init.sls 1020 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # APT
  3. #
  4. /etc/apt/sources.list:
  5. file.managed:
  6. - source: salt://apt/sources.list.{{ grains.os }}.{{ grains.oscodename }}
  7. /etc/cron.d/apt:
  8. file.managed:
  9. - source: salt://apt/update_apt.cron
  10. {% if (grains.oscodename == 'jessie' or grains.oscodename == 'stretch') %}
  11. apt-transport-https:
  12. pkg.installed
  13. {% endif %}
  14. python-apt:
  15. pkg.installed
  16. ffho-repo:
  17. pkgrepo.managed:
  18. - comments:
  19. - "# FFHO APT repo"
  20. - human_name: FFHO repository
  21. - name: deb http://apt.ffho.net/ {{ grains.oscodename }} main contrib non-free
  22. - clean_file: True
  23. - dist: {{ grains.oscodename }}
  24. - file: /etc/apt/sources.list.d/ffho.list
  25. - keyserver: keys.gnupg.net
  26. {% if grains.oscodename == "jessie" %}
  27. - keyid: 40FC1CE2
  28. {% else %}
  29. - keyid: EB88A4D5
  30. {% endif %}
  31. - require:
  32. - pkg: python-apt
  33. # APT preferences
  34. /etc/apt/preferences.d/ffho:
  35. file.managed:
  36. - source: salt://apt/ffho.preferences
  37. /etc/apt/apt.conf.d/ffho:
  38. file.managed:
  39. - source: salt://apt/ffho.apt.conf