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.

28 line
599B

  1. {%- from "linux/map.jinja" import system with context %}
  2. {%- if system.enabled %}
  3. {%- if grains.os_family == 'Debian' %}
  4. {%- if system.repo|length > 0 %}
  5. include:
  6. - linux.system.repo
  7. {%- endif %}
  8. {%- for key, config in system.apt.get('config', {}).items() %}
  9. linux_apt_conf_{{ key }}:
  10. file.managed:
  11. - name: /etc/apt/apt.conf.d/99{{ key }}-salt
  12. - template: jinja
  13. - source: salt://linux/files/apt.conf
  14. - defaults:
  15. config: {{ config|yaml }}
  16. {%- if system.repo|length > 0 %}
  17. - require_in:
  18. - pkg: linux_repo_prereq_pkgs
  19. {%- endif %}
  20. {%- endfor %}
  21. {%- endif %}
  22. {%- endif %}