From 3f1bb7d964a92b8f4a68d9fd802f3d96bf66f83e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 25 Apr 2015 11:35:29 +0100 Subject: [PATCH] Add apcu support --- README.rst | 12 ++++++++++++ php/apcu.sls | 5 +++++ php/map.jinja | 2 ++ php/ng/apcu.sls | 2 ++ php/ng/map.jinja | 2 ++ 5 files changed, 23 insertions(+) create mode 100644 php/apcu.sls create mode 100644 php/ng/apcu.sls diff --git a/README.rst b/README.rst index cb5658b..5bbfd83 100644 --- a/README.rst +++ b/README.rst @@ -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`` -------------- diff --git a/php/apcu.sls b/php/apcu.sls new file mode 100644 index 0000000..324e53f --- /dev/null +++ b/php/apcu.sls @@ -0,0 +1,5 @@ +{% from "php/map.jinja" import php with context %} + +php-apcu: + pkg.installed: + - name: {{ php.apcu_pkg }} diff --git a/php/map.jinja b/php/map.jinja index a0bdad0..91d4310 100644 --- a/php/map.jinja +++ b/php/map.jinja @@ -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', diff --git a/php/ng/apcu.sls b/php/ng/apcu.sls new file mode 100644 index 0000000..389c837 --- /dev/null +++ b/php/ng/apcu.sls @@ -0,0 +1,2 @@ +{% set state = 'apcu' %} +{% include "php/ng/installed.jinja" %} diff --git a/php/ng/map.jinja b/php/ng/map.jinja index 0071dbf..02fa070 100644 --- a/php/ng/map.jinja +++ b/php/ng/map.jinja @@ -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'],