init.sls 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. pkgrepo.managed:
  16. - comments:
  17. - "# FFPB APT repo"
  18. - human_name: FFPB repository
  19. - name: deb http://apt.paderborn.freifunk.net/ wheezy main contrib non-free
  20. - dist: wheezy
  21. - file: /etc/apt/sources.list.d/freifunk.list
  22. - keyserver: keys.gnupg.net
  23. - keyid: 40FC1CE2
  24. - require:
  25. - pkg: python-apt
  26. {% if grains['oscodename'] == 'jessie' %}
  27. ffho-repo-jessie:
  28. pkgrepo.managed:
  29. - comments:
  30. - "# FFHO APT repo"
  31. - human_name: FFHO repository
  32. - name: deb http://apt.ffho.net/ jessie main contrib non-free
  33. - dist: jessie
  34. - file: /etc/apt/sources.list.d/ffho.list
  35. - keyserver: keys.gnupg.net
  36. - keyid: 40FC1CE2
  37. - require:
  38. - pkg: python-apt
  39. {% endif %}
  40. apt-neoraider:
  41. pkgrepo.managed:
  42. - comments:
  43. - "# Neoraiders APT repo"
  44. - human_name: Neoraiders APT repo
  45. - name: deb https://repo.universe-factory.net/debian/ sid main
  46. - dist: sid
  47. - file: /etc/apt/sources.list.d/universe-factory.list
  48. - keyserver: pgpkeys.mit.edu
  49. - keyid: 16EF3F64CB201D9C
  50. apt-icinga2:
  51. pkgrepo.managed:
  52. - comments:
  53. - "# Icinga2 repo"
  54. - human_name: Icinga2 repo
  55. - name: deb http://packages.icinga.org/debian icinga-jessie main
  56. - file: /etc/apt/sources.list.d/icinga2.list
  57. - key_url: http://packages.icinga.org/icinga.key
  58. # APT preferences - Pin neoraiders packages to prio 900
  59. /etc/apt/preferences.d/ffho:
  60. file.managed:
  61. - source: salt://apt/ffho.preferences
  62. /etc/apt/apt.conf.d/ffho:
  63. file.managed:
  64. - source: salt://apt/ffho.apt.conf