Browse Source

Merge pull request #49 from imran1008/list-of-extensions

Allow pillars to specify a list of extensions
tags/v0.34.0
Nitin Madhok 9 years ago
parent
commit
5601d5e2a4
2 changed files with 7 additions and 0 deletions
  1. +2
    -0
      php/ng/files/php.ini
  2. +5
    -0
      pillar.example

+ 2
- 0
php/ng/files/php.ini View File

{%- elif value is iterable -%} {%- elif value is iterable -%}
{%- if key == 'error_reporting' %} {%- if key == 'error_reporting' %}
{{ key }} = {{ value|join(" & ") }} {{ key }} = {{ value|join(" & ") }}
{%- elif key == 'extension' %}
{{ key }} = {{ value|join("\n extension = ") }}
{%- else %} {%- else %}
{{ key }} = {{ value|join(",") }} {{ key }} = {{ value|join(",") }}
{%- endif -%} {%- endif -%}

+ 5
- 0
pillar.example View File

settings: settings:
PHP: PHP:
engine: 'Off' engine: 'Off'
extension_dir: '/usr/lib/php/modules/'
extension: [pdo_mysql.so, iconv.so, openssl.so]


# options to manage the php-fpm conf file # options to manage the php-fpm conf file
conf: conf:
user: www-data user: www-data
group: www-data group: www-data
listen: /var/run/php5-fpm-myapp.sock listen: /var/run/php5-fpm-myapp.sock
listen.owner: www-data
listen.group: www-data
listen.mode: 0660
pm: dynamic pm: dynamic
pm.max_children: 5 pm.max_children: 5
pm.start_servers: 2 pm.start_servers: 2

Loading…
Cancel
Save