Saltstack Official Salt Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

minion.sls 828B

1234567891011121314151617181920212223242526272829
  1. {% from "salt/map.jinja" import salt_settings with context %}
  2. salt-minion:
  3. {% if salt_settings.install_packages %}
  4. pkg.installed:
  5. - name: {{ salt_settings.salt_minion }}
  6. {% endif %}
  7. file.recurse:
  8. - name: {{ salt_settings.config_path }}/minion.d
  9. - template: jinja
  10. - source: salt://salt/files/minion.d
  11. - clean: {{ salt_settings.clean_config_d_dir }}
  12. - exclude_pat: _*
  13. - context:
  14. standalone: False
  15. service.running:
  16. - enable: True
  17. - name: {{ salt_settings.minion_service }}
  18. - watch:
  19. {% if salt_settings.install_packages %}
  20. - pkg: salt-minion
  21. {% endif %}
  22. - file: salt-minion
  23. - file: remove-old-minion-conf-file
  24. # clean up old _defaults.conf file if they have it around
  25. remove-old-minion-conf-file:
  26. file.absent:
  27. - name: /etc/salt/minion.d/_defaults.conf