Saltstack Official Linux Formula
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

30 lines
1.1KB

  1. {%- from "linux/map.jinja" import system with context -%}
  2. {%- if system.autoupdates.enabled %}
  3. APT::Periodic::Enable "1";
  4. APT::Periodic::Update-Package-Lists "1";
  5. APT::Periodic::Unattended-Upgrade "1";
  6. {%- else %}
  7. APT::Periodic::Unattended-Upgrade "0";
  8. {%- endif %}
  9. {%- if system.autoupdates.mail is defined %}
  10. Unattended-Upgrade::Mail "{{ system.autoupdates.mail }}";
  11. {%- endif %}
  12. {%- if system.autoupdates.mail_only_on_error is defined %}
  13. Unattended-Upgrade::MailOnlyOnError "{{ "true" if system.autoupdates.mail_only_on_error else "false"}}";
  14. {%- endif %}
  15. {%- if system.autoupdates.remove_unused_dependencies is defined %}
  16. Unattended-Upgrade::Remove-Unused-Dependencies "{{ "true" if system.autoupdates.remove_unused_dependencies else "false"}}";
  17. {%- endif %}
  18. {%- if system.autoupdates.automatic_reboot is defined %}
  19. Unattended-Upgrade::Automatic-Reboot "{{ "true" if system.autoupdates.automatic_reboot else "false"}}";
  20. {%- endif %}
  21. {%- if system.autoupdates.automatic_reboot_time is defined %}
  22. Unattended-Upgrade::Automatic-Reboot-Time "{{ system.autoupdates.automatic_reboot_time }}";
  23. {%- endif %}