Saltstack Official Apt Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

33 rindas
1.7KB

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