Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 satır
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 %}