Saltstack Official Apt Formula
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

39 líneas
2.0KB

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