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

pools.sls 573B

123456789101112131415161718192021222324
  1. # Manages the php-fpm pools config files
  2. {% from "php/map.jinja" import php with context %}
  3. {% from "php/macro.jinja" import sls_block %}
  4. {% from "php/fpm/pools_config.sls" import pool_states with context %}
  5. {% macro file_requisites(states) %}
  6. {%- for state in states %}
  7. - file: {{ state }}
  8. {%- endfor -%}
  9. {% endmacro %}
  10. include:
  11. - php.fpm.service
  12. - php.fpm.pools_config
  13. {% if pool_states %}
  14. extend:
  15. php_fpm_service:
  16. service:
  17. - watch:
  18. {{ file_requisites(pool_states) }}
  19. - require:
  20. {{ file_requisites(pool_states) }}
  21. {% endif %}