-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from spsoit/master
Adds NG states to php-formula
- Loading branch information
Showing
40 changed files
with
886 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
=========== | ||
php-formula | ||
=========== | ||
|
||
0.2.0 | ||
----- | ||
|
||
- Added .ng states | ||
|
||
0.1.0 | ||
----- | ||
|
||
- Initial version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{% set state = 'adodb' %} | ||
{% include "php/ng/installed.jinja" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{% set state = 'apc' %} | ||
{% include "php/ng/installed.jinja" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{% set state = 'cgi' %} | ||
{% include "php/ng/installed.jinja" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Manages the php cli main ini file | ||
{% from 'php/ng/map.jinja' import php with context %} | ||
{% from "php/ng/ini.jinja" import php_ini %} | ||
{% set settings = php.ini.defaults %} | ||
{% do settings.update(php.cli.ini.settings) %} | ||
php_cli_ini: | ||
{{ php_ini(php.lookup.cli.ini, php.cli.ini.opts, settings) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Installs php-cli and manages the associated php.ini | ||
|
||
include: | ||
- php.ng.cli.install | ||
- php.ng.cli.ini | ||
|
||
extend: | ||
php_cli_ini: | ||
file: | ||
- require: | ||
- sls: php.ng.cli.install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{% set state = 'cli' %} | ||
{% include "php/ng/installed.jinja" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{% set state = 'curl' %} | ||
{% include "php/ng/installed.jinja" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{%- macro php_block(config) %} | ||
{% for sections in config %} | ||
{%- for section, settings in sections.items() -%} | ||
{%- if settings is number or settings is string %} | ||
{{ section }} = {{ settings }} | ||
{%- else %} | ||
[{{ section }}] | ||
{%- for setting in settings -%} | ||
{%- for key, value in setting.items() %} | ||
{%- if value is number or value is string %} | ||
{{ key }} = {{ value }} | ||
{%- elif value is iterable -%} | ||
{%- if key == 'error_reporting' %} | ||
{{ key }} = {{ value|join(" & ") }} | ||
{%- else %} | ||
{{ key }} = {{ value|join(",") }} | ||
{%- endif -%} | ||
{%- endif -%} | ||
{%- endfor -%} | ||
{%- endfor -%} | ||
{%- endif -%} | ||
{%- endfor -%} | ||
{% endfor %} | ||
{%- endmacro -%} | ||
|
||
; PHP configuration file. | ||
; | ||
; **** DO NOT EDIT THIS FILE **** | ||
; | ||
; This file is managed by Salt via {{ source }} | ||
{{ php_block(config) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Manages the php-fpm main ini file | ||
{% from 'php/ng/map.jinja' import php with context %} | ||
{% from "php/ng/ini.jinja" import php_ini %} | ||
{% set ini_settings = php.ini.defaults %} | ||
{% do ini_settings.update(php.fpm.config.ini.settings) %} | ||
{% set conf_settings = php.lookup.fpm.defaults %} | ||
{% do conf_settings.update(php.fpm.config.conf.settings) %} | ||
php_fpm_ini_config: | ||
{{ php_ini(php.lookup.fpm.ini, php.fpm.config.ini.opts, ini_settings) }} | ||
php_fpm_conf_config: | ||
{{ php_ini(php.lookup.fpm.conf, php.fpm.config.conf.opts, conf_settings) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Meta-state to fully install php.fpm | ||
|
||
include: | ||
- php.ng.fpm.config | ||
- php.ng.fpm.service | ||
- php.ng.fpm.pools | ||
|
||
extend: | ||
php_fpm_service: | ||
service: | ||
- watch: | ||
- file: php_fpm_ini_config | ||
- file: php_fpm_conf_config | ||
- require: | ||
- sls: php.ng.fpm.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{% set state = 'fpm' %} | ||
{% include "php/ng/installed.jinja" %} |
Oops, something went wrong.