init.sls 933 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. apt-transport-https:
  11. pkg.installed
  12. python-apt:
  13. pkg.installed
  14. ffho-repo:
  15. pkgrepo.managed:
  16. - comments:
  17. - "# FFHO APT repo"
  18. - human_name: FFHO repository
  19. - name: deb http://apt.ffho.net/ {{ grains.oscodename }} main contrib non-free
  20. - clean_file: True
  21. - dist: {{ grains.oscodename }}
  22. - file: /etc/apt/sources.list.d/ffho.list
  23. - keyserver: keys.gnupg.net
  24. {% if grains.oscodename == "jessie" %}
  25. - keyid: 40FC1CE2
  26. {% else %}
  27. - keyid: EB88A4D5
  28. {% endif %}
  29. - require:
  30. - pkg: python-apt
  31. # APT preferences
  32. /etc/apt/preferences.d/ffho:
  33. file.managed:
  34. - source: salt://apt/ffho.preferences
  35. /etc/apt/apt.conf.d/ffho:
  36. file.managed:
  37. - source: salt://apt/ffho.apt.conf