init.sls 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. # FFHO APT
  11. /etc/apt/trusted.gpg.d/ffho.gpg:
  12. file.managed:
  13. - source: salt://apt/ffho.gpg.{{ grains.os }}.{{ grains.oscodename }}
  14. /etc/apt/sources.list.d/ffho.list:
  15. file.managed:
  16. - source: salt://apt/ffho.list.{{ grains.os }}.{{ grains.oscodename }}
  17. - require:
  18. - file: /etc/apt/trusted.gpg.d/ffho.gpg
  19. # Salt APT
  20. /usr/share/keyrings/salt-archive-keyring.gpg:
  21. file.managed:
  22. - source:
  23. - salt://apt/salt.gpg.{{ grains.os }}.{{ grains.oscodename }}
  24. - salt://apt/salt.gpg
  25. /etc/apt/sources.list.d/salt.list:
  26. file.managed:
  27. - source: salt://apt/salt.list.{{ grains.os }}.{{ grains.oscodename }}
  28. - require:
  29. - file: /usr/share/keyrings/salt-archive-keyring.gpg
  30. # APT preferences
  31. /etc/apt/preferences.d/ffho:
  32. file.managed:
  33. - source: salt://apt/ffho.preferences
  34. /etc/apt/apt.conf.d/ffho:
  35. file.managed:
  36. - source: salt://apt/ffho.apt.conf