init.sls 870 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 APT
  17. /etc/apt/trusted.gpg.d/ffho.gpg:
  18. file.managed:
  19. - source: salt://apt/ffho.gpg.{{ grains.os }}.{{ grains.oscodename }}
  20. /etc/apt/sources.list.d/ffho.list:
  21. file.managed:
  22. - source: salt://apt/ffho.list.{{ grains.os }}.{{ grains.oscodename }}
  23. - require:
  24. - file: /etc/apt/trusted.gpg.d/ffho.gpg
  25. # APT preferences
  26. /etc/apt/preferences.d/ffho:
  27. file.managed:
  28. - source: salt://apt/ffho.preferences
  29. /etc/apt/apt.conf.d/ffho:
  30. file.managed:
  31. - source: salt://apt/ffho.apt.conf