init.sls 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. ffpb-repo:
  15. file.absent:
  16. - name: /etc/apt/sources.list.d/freifunk.list
  17. ffho-repo-jessie:
  18. pkgrepo.managed:
  19. - comments:
  20. - "# FFHO APT repo"
  21. - human_name: FFHO repository
  22. - name: deb http://apt.ffho.net/ jessie main contrib non-free
  23. - dist: jessie
  24. - file: /etc/apt/sources.list.d/ffho.list
  25. - keyserver: keys.gnupg.net
  26. - keyid: 40FC1CE2
  27. - require:
  28. - pkg: python-apt
  29. apt-neoraider:
  30. pkgrepo.managed:
  31. - comments:
  32. - "# Neoraiders APT repo"
  33. - human_name: Neoraiders APT repo
  34. - name: deb https://repo.universe-factory.net/debian/ sid main
  35. - dist: sid
  36. - file: /etc/apt/sources.list.d/universe-factory.list
  37. - keyserver: pgpkeys.mit.edu
  38. - keyid: 16EF3F64CB201D9C
  39. apt-icinga2:
  40. pkgrepo.managed:
  41. - comments:
  42. - "# Icinga2 repo"
  43. - human_name: Icinga2 repo
  44. - name: deb http://packages.icinga.org/debian icinga-jessie main
  45. - file: /etc/apt/sources.list.d/icinga2.list
  46. - key_url: http://packages.icinga.org/icinga.key
  47. # APT preferences - Pin neoraiders packages to prio 900
  48. /etc/apt/preferences.d/ffho:
  49. file.managed:
  50. - source: salt://apt/ffho.preferences
  51. /etc/apt/apt.conf.d/ffho:
  52. file.managed:
  53. - source: salt://apt/ffho.apt.conf