New version of salt-formula from Saltstack
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.

33 lines
784B

  1. {%- from "salt/map.jinja" import minion,env_vars with context %}
  2. {%- if env_vars.engine is defined %}
  3. {%- if env_vars.engine == 'file' %}
  4. /etc/default/salt-minion:
  5. file.managed:
  6. - source: salt://salt/files/etc_default_salt-minion
  7. - user: root
  8. - group: root
  9. - template: jinja
  10. - require:
  11. - {{ minion.install_state }}
  12. - onchanges_in:
  13. - cmd: salt_minion_service_restart
  14. {%- if grains.get('init', None) == 'systemd' %}
  15. /etc/systemd/system/salt-minion.service.d/override.conf:
  16. file.managed:
  17. - source: salt://salt/files/systemd_minion_override.conf
  18. - user: root
  19. - makedirs: True
  20. - group: root
  21. - template: jinja
  22. - require:
  23. - {{ minion.install_state }}
  24. - onchanges_in:
  25. - cmd: salt_minion_service_restart
  26. {%- endif %}
  27. {%- endif %}
  28. {%- endif %}