Merge pull request #37 from Seldaek/master

Add apcu support
This commit is contained in:
Wolodja Wentland 2015-04-25 15:41:55 +02:00
commit d1524bf311
5 changed files with 23 additions and 0 deletions

View File

@ -26,6 +26,12 @@ Installs the php package.
Installs the php-apc package.
Disabled by default on opensuse need server:php repo
``php.apcu``
------------
Installs the php-apcu package.
Disabled by default on opensuse need server:php repo
``php.adodb``
-------------
@ -196,6 +202,12 @@ Installs the php-adodb package.
Installs the php-apc package.
Disabled on opensuse need server:php repo
``php.ng.apcu``
---------------
Installs the php-apcu package.
Disabled on opensuse need server:php repo
``php.ng.cgi``
--------------

5
php/apcu.sls Normal file
View File

@ -0,0 +1,5 @@
{% from "php/map.jinja" import php with context %}
php-apcu:
pkg.installed:
- name: {{ php.apcu_pkg }}

View File

@ -2,6 +2,7 @@
'Debian': {
'php_pkg': 'php5',
'apc_pkg': 'php-apc',
'apcu_pkg': 'php5-apcu',
'cgi_pkg': 'php5-cgi',
'cli_pkg': 'php5-cli',
'curl_pkg': 'php5-curl',
@ -38,6 +39,7 @@
'RedHat': {
'php_pkg': 'php',
'apc_pkg': 'php-pecl-apc',
'apcu_pkg': 'php-pecl-apcu',
'cgi_pkg': 'php-cgi',
'cli_pkg': 'php-cli',
'curl_pkg': 'curl',

2
php/ng/apcu.sls Normal file
View File

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

View File

@ -4,6 +4,7 @@
'pkgs': {
'php': 'php5',
'apc': 'php-apc',
'apcu': 'php5-apcu',
'cgi': 'php5-cgi',
'cli': 'php5-cli',
'apache2': 'libapache2-mod-php5',
@ -54,6 +55,7 @@
'pkgs': {
'php': 'php',
'apc': 'php-pecl-apc',
'apcu': 'php-pecl-apcu',
'cgi': 'php-cgi',
'cli': 'php-cli',
'curl': ['php-common', 'curl'],