|
|
|
|
|
|
|
|
- enablerepo: {{ enable_php_repo }} |
|
|
- enablerepo: {{ enable_php_repo }} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
{% set service = salt['pillar.get']('php:lookup:fpm:service', 'php-fpm') %} |
|
|
|
|
|
{% if salt['service.status'](service, False) %} |
|
|
|
|
|
{{ service }}_restart_{{ state }}: |
|
|
|
|
|
service.running: |
|
|
|
|
|
- name: {{ service }} |
|
|
|
|
|
- watch: |
|
|
|
|
|
- pkg: php_install_{{ state }} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% for pkg in specials %} |
|
|
{% for pkg in specials %} |
|
|
|
|
|
|
|
|
php_install_{{ state }}_{{ pkg.get('name') | replace("/", "-") }}: |
|
|
php_install_{{ state }}_{{ pkg.get('name') | replace("/", "-") }}: |