init.sls 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 preferences - Pin neoraiders packages to prio 900
  51. /etc/apt/preferences.d/ffho:
  52. file.managed:
  53. - source: salt://apt/ffho.preferences