-
Notifications
You must be signed in to change notification settings - Fork 230
[php/ng] support the use of a list of php versions #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b303239
a98aa7e
dbb542c
bb4a077
23a6ec1
38fe58f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,34 @@ include: | |
- php.ng.fpm.service | ||
- php.ng.fpm.pools | ||
|
||
{% set pillar_php_ng_version = salt['pillar.get']('php:ng:version', '7.0') %} | ||
extend: | ||
php_fpm_service: | ||
service: | ||
- watch: | ||
{% if pillar_php_ng_version is iterable and pillar_php_ng_version is not string %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now I'm not sure how this handles when 7.3 as a float is used. Is setting the version without quotes supported by the existing version of the formula ? |
||
{% for version in pillar_php_ng_version %} | ||
- file: php_fpm_ini_config_{{ version }} | ||
- file: php_fpm_conf_config_{{ version }} | ||
{% endfor %} | ||
{% else %} | ||
- file: php_fpm_ini_config | ||
- file: php_fpm_conf_config | ||
{% endif %} | ||
- require: | ||
- sls: php.ng.fpm.config | ||
{% if pillar_php_ng_version is iterable and pillar_php_ng_version is not string %} | ||
{% for version in pillar_php_ng_version %} | ||
php_fpm_ini_config_{{ version }}: | ||
file: | ||
- require: | ||
- pkg: php_install_fpm | ||
php_fpm_conf_config_{{ version }}: | ||
file: | ||
- require: | ||
- pkg: php_install_fpm | ||
{% endfor %} | ||
{% else %} | ||
php_fpm_ini_config: | ||
file: | ||
- require: | ||
|
@@ -21,3 +41,4 @@ extend: | |
file: | ||
- require: | ||
- pkg: php_install_fpm | ||
{% endif %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ | |
- source: salt://php/ng/files/php.ini | ||
- template: jinja | ||
- context: | ||
config: {{ serialize(settings) }} | ||
config: {{ serialize(odict(settings)) }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure this is needed |
||
{%- endmacro -%} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not very satisfied with this part, I would want the loop above to be more generic but for some reason I couldn't get it to change the subdictionnary