Saltstack Official Salt Formula
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

48 linhas
1.2KB

  1. {% from "salt/map.jinja" import salt_settings with context %}
  2. {% if salt_settings.install_packages %}
  3. master_installed:
  4. module_and_function: pkg.version
  5. args:
  6. - {{ salt_settings.salt_master }}
  7. {%- if salt_settings.version is defined %}
  8. assertion: assertEqual
  9. expected-return: {{ salt_settings.version }}
  10. {% else %}
  11. assertion: assertNotEmpty
  12. {%- endif %}
  13. {% endif %}
  14. master_running:
  15. module_and_function: service.status
  16. args:
  17. - {{ salt_settings.master_service }}
  18. assertion: assertTrue
  19. master_enabled:
  20. module_and_function: service.enabled
  21. args:
  22. - {{ salt_settings.master_service }}
  23. assertion: assertTrue
  24. master_conf_deployed:
  25. module_and_function: file.search
  26. args:
  27. - {{ salt_settings.config_path }}/master.d/f_defaults.conf
  28. - This file managed by Salt, do not edit by hand
  29. assertion: assertTrue
  30. {% if salt_settings.master_remove_config %}
  31. default-master-conf-removed:
  32. module_and_function: file.file_exists
  33. args:
  34. - {{ salt_settings.config_path }}/master
  35. assertion: assertFalse
  36. {% endif %}
  37. old-master-conf-removed:
  38. module_and_function: file.file_exists
  39. args:
  40. - {{ salt_settings.config_path }}/master.d/_defaults.conf
  41. assertion: assertFalse