Bläddra i källkod

Merge pull request #31 from aboe76/apache2_debian_ini

add libapache2-mod-php5 options on debian only
tags/v0.34.0
Forrest 9 år sedan
förälder
incheckning
6eabe99dfb
4 ändrade filer med 35 tillägg och 0 borttagningar
  1. +9
    -0
      php/ng/apache2/ini.sls
  2. +14
    -0
      php/ng/apache2/init.sls
  3. +2
    -0
      php/ng/apache2/install.sls
  4. +10
    -0
      php/ng/map.jinja

+ 9
- 0
php/ng/apache2/ini.sls Visa fil

@@ -0,0 +1,9 @@
# Manages the libapache2-mod-php5 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.apache2.ini.settings) %}

php_apache2_ini:
{{ php_ini(php.lookup.apache2.ini, php.apache2.ini.opts, settings) }}

+ 14
- 0
php/ng/apache2/init.sls Visa fil

@@ -0,0 +1,14 @@
# Installs libapache2-mod-php5 package and manages the associated php.ini on os Debian
{% if grains['os_family']=="Debian" %}

include:
- php.ng.apache2.install
- php.ng.apache2.ini

extend:
php_apache2_ini:
file:
- require:
- sls: php.ng.apache2.install

{% endif %} #END: os = debian

+ 2
- 0
php/ng/apache2/install.sls Visa fil

@@ -0,0 +1,2 @@
{% set state = 'apache2' %}
{% include "php/ng/installed.jinja" %}

+ 10
- 0
php/ng/map.jinja Visa fil

@@ -6,6 +6,7 @@
'apc': 'php-apc',
'cgi': 'php5-cgi',
'cli': 'php5-cli',
'apache2': 'libapache2-mod-php5',
'curl': 'php5-curl',
'fpm': 'php5-fpm',
'gd': 'php5-gd',
@@ -44,6 +45,9 @@
'cli': {
'ini': '/etc/php5/cli/php.ini',
},
'apache2': {
'ini': '/etc/php5/apache2/php.ini',
},
},
'RedHat': {
'pkgs': {
@@ -114,6 +118,12 @@
'settings': {},
}
},
'apache2': {
'ini': {
'opts': {},
'settings': {},
}
},
'ini': {
'defaults': {
'PHP': {

Laddar…
Avbryt
Spara