Saltstack Official Apt 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ů.

32 lines
1.6KB

  1. {% set apt = pillar.get('apt:unattended', {}) -%}
  2. {% set allowed_origins = apt.get('allowed_origins', ['${distro_id}:${distro_codename}-security']) -%}
  3. {% set package_blacklist = apt.get('package_blacklist', {}) -%}
  4. {% set auto_fix_interrupted_dpkg = apt.get('auto_fix_interrupted_dpkg', 'true') -%}
  5. {% set minimal_steps = apt.get('minimal_steps', 'false') -%}
  6. {% set install_on_shutdown = apt.get('install_on_shutdown', 'false') -%}
  7. {% set mail = apt.get('mail', 'root') -%}
  8. {% set mail_only_on_error = apt.get('mail_only_on_error', 'false') -%}
  9. {% set remove_unused_dependencies = apt.get('remove_unused_dependencies', 'true') -%}
  10. {% set automatic_reboot = apt.get('automatic_reboot', 'false') -%}
  11. {% set automatic_reboot_time = apt.get('automatic_reboot_time', 'now') -%}
  12. {% set dl_limit = apt.get('dl_limit', '0') -%}
  13. Unattended-Upgrade::Allowed-Origins {
  14. {%- for pattern in allowed_origins %}
  15. "{{ pattern }}";
  16. {%- endfor %}
  17. };
  18. Unattended-Upgrade::Package-Blacklist {
  19. {%- for package in package_blacklist %}
  20. "{{ package }}";
  21. {%- endfor %}
  22. };
  23. Unattended-Upgrade::AutoFixInterruptedDpkg "{{ auto_fix_interrupted_dpkg }}";
  24. Unattended-Upgrade::MinimalSteps "{{ minimal_steps }}";
  25. Unattended-Upgrade::InstallOnShutdown "{{ install_on_shutdown }}";
  26. Unattended-Upgrade::Mail "{{ mail }}";
  27. Unattended-Upgrade::MailOnlyOnError "{{ mail_only_on_error }}";
  28. Unattended-Upgrade::Remove-Unused-Dependencies "{{ remove_unused_dependencies }}";
  29. Unattended-Upgrade::Automatic-Reboot "{{ automatic_reboot }}";
  30. Unattended-Upgrade::Automatic-Reboot-Time "{{ automatic_reboot_time }}";
  31. Acquire::http::Dl-Limit "{{ dl_limit }}";