Saltstack Official PHP Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12345678910111213141516
  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