Saltstack Official PHP Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

23 行
571B

  1. # Manages the php-fpm pools config files
  2. {% from "php/ng/map.jinja" import php with context %}
  3. {% from "php/ng/macro.jinja" import sls_block %}
  4. {% from "php/ng/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.ng.fpm.service
  12. - php.ng.fpm.pools_config
  13. extend:
  14. php_fpm_service:
  15. service:
  16. - watch:
  17. {{ file_requisites(pool_states) }}
  18. - require:
  19. {{ file_requisites(pool_states) }}