init.sls 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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: salt://apt/salt.gpg
  23. /etc/apt/trusted.gpg.d/salt.gpg:
  24. file.absent
  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