Skip to content

Commit

Permalink
Merge pull request #33 from syphernl/fix/zendserver_multi_php
Browse files Browse the repository at this point in the history
Add missing requisites for ZS-Stack
  • Loading branch information
syphernl committed Sep 20, 2016
2 parents f8258b4 + ca643cc commit ade19c0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions vhosting/webstack/zendserver.sls
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{%- set webserver = salt['pillar.get']('vhosting:server:webserver', 'nginx') %}
{%- set disable_webserver = salt['pillar.get']('vhosting:server:config:disable_webserver', False) %}
{%- set enable_zray = salt['pillar.get']('vhosting:server:config:zendserver:enable_zray', False) %}
{%- set php_versions = salt['pillar.get']('phpfpm:php_versions', []) %}

include:
- zendserver
Expand All @@ -25,6 +26,24 @@ include:
- service: php5-fpm
- watch_in:
- service: zendserver

{% if php_versions|length > 0 %}
# The PHP-FPM formula only creates these folders if only the "default" PHP stack
# is being used, not if multiple co-exist (in combination with ZS).
/usr/local/zend/etc/fpm.d:
file.directory:
- require:
- pkg: zendserver
- require_in:
- file: /usr/local/zend/etc/php-fpm.conf

/usr/local/zend/tmp:
file.directory:
- require:
- pkg: zendserver
- require_in:
- file: /usr/local/zend/etc/fpm.d
{%- endif %}
{%- endif %}

# Zend-server is ... a service. This is not included in the Zendserver formula (yet)
Expand Down

0 comments on commit ade19c0

Please sign in to comment.