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

17 行
486B

  1. # Manages the php-fpm service.
  2. {% from 'php/ng/map.jinja' import php, sls_block with context %}
  3. {% set service_function = {True:'running', False:'dead'}.get(php.fpm.service.enabled) %}
  4. include:
  5. - php.ng.fpm.install
  6. php_fpm_service:
  7. service.{{ service_function }}:
  8. {{ sls_block(php.fpm.service.opts) }}
  9. - name: {{ php.lookup.fpm.service }}
  10. - enable: {{ php.fpm.service.enabled }}
  11. - require:
  12. - sls: php.ng.fpm.install
  13. - watch:
  14. - pkg: php_install_fpm