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

31 lines
980B

  1. {%- set apt = pillar.get('apt', {}) -%}
  2. {%- set listchanges = apt.get('listchanges', {}) -%}
  3. {%- for profile_name, profile_details in listchanges.get('profiles', {}).items() -%}
  4. {%- set frontend = profile_details.get('frontend', None) -%}
  5. {%- set email_address = profile_details.get('email_address', None) -%}
  6. {%- set confirm = profile_details.get('confirm', None) -%}
  7. {%- set save_seen = profile_details.get('save_seen', None) -%}
  8. {%- set which = profile_details.get('which', None) -%}
  9. {%- set browser = profile_details.get('browser', None) -%}
  10. [{{ profile_name }}]
  11. {%- if frontend != None %}
  12. frontend={{ frontend }}
  13. {%- endif %}
  14. {%- if email_address != None %}
  15. email_address={{ email_address }}
  16. {%- endif %}
  17. {%- if confirm != None %}
  18. confirm={{ confirm }}
  19. {%- endif %}
  20. {%- if save_seen != None %}
  21. save_seen={{ save_seen }}
  22. {%- endif %}
  23. {%- if which != None %}
  24. which={{ which }}
  25. {%- endif %}
  26. {%- if browser != None %}
  27. browser={{ browser }}
  28. {% endif %}
  29. {% endfor %}