
{% if websrv == "nginx" %}
;listen.allowed_clients = 127.0.0.1
listen.acl_users = nginx
{% else %}
listen.acl_users = apache
{% endif %}
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp

php_value[session.save_handler] = redis
{% if (groups['web_servers'] | length) > 1 %}
php_value[session.save_path]    = "tcp://127.0.0.1:{{ redis_port }}?weight=2&timeout=2.5, tcp://{{ keepalived_vip }}:{{ redis_port }}?weight=1"
{% else %}
php_value[session.save_path]    = "tcp://{{ redis_host }}:{{ redis_port }}"
{% endif %}
php_value[soap.wsdl_cache_dir]  = "tcp://{{ redis_host }}:{{ redis_port }}"
