Skip to content

Instantly share code, notes, and snippets.

@defsdoor
Created October 5, 2017 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save defsdoor/d8b28e7e29c9675a579e51c8d06687c9 to your computer and use it in GitHub Desktop.
Save defsdoor/d8b28e7e29c9675a579e51c8d06687c9 to your computer and use it in GitHub Desktop.
pillar
websites:
test.co.uk:
owner: testsite
servers:
- www.test.co.uk
aliases:
- dev.test.co.uk
type: magento
version: 1.0.0
status: active
port: 9001
pool_options:
pm.max_children: 5
pm.start_servers: 5
pm.min_spare_servers: 3
pm.max_spare_servers: 5
-
state-
{%- set pool_options = settings.get('pool_options', {}) %}
/etc/php/7.0/fpm/pool.d/{{website_label}}.conf:
file.managed:
- source: salt://php_fpm.conf
- template: jinja
- user: {{site_owner}}
- group: {{site_owner}}
- website: {{ website }}
- label: {{ website_label }}
- html_dir: {{ html_dir }}
- php_fpm_port: {{ php_fpm_port }}
- pool_options: {{ pool_options }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment