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.

22 lines
533B

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