From be040a12297b8e8bc06ec6e16fcab9456ddca89a Mon Sep 17 00:00:00 2001 From: Giuseppe Iannello Date: Wed, 9 Apr 2014 20:06:30 +0200 Subject: [PATCH] Fix #9 - Add explicit installation for php-cgi --- README.rst | 5 +++++ php/cgi.sls | 6 ++++++ php/map.jinja | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 php/cgi.sls diff --git a/README.rst b/README.rst index e7f4fa7..906fbba 100644 --- a/README.rst +++ b/README.rst @@ -30,6 +30,11 @@ Installs the php-apc package. Installs the php-adodb package. +``php.cgi`` +------------ + +Installs the php-cgi package. + ``php.cli`` ------------ diff --git a/php/cgi.sls b/php/cgi.sls new file mode 100644 index 0000000..b49ec8f --- /dev/null +++ b/php/cgi.sls @@ -0,0 +1,6 @@ +{% from "php/map.jinja" import php with context %} + +php-cgi: + pkg: + - installed + - name: {{ php.cgi_pkg }} diff --git a/php/map.jinja b/php/map.jinja index 329e530..029d76f 100644 --- a/php/map.jinja +++ b/php/map.jinja @@ -2,6 +2,7 @@ 'Debian': { 'php_pkg': 'php5', 'apc_pkg': 'php-apc', + 'cgi_pkg': 'php5-cgi', 'cli_pkg': 'php5-cli', 'curl_pkg': 'php5-curl', 'fpm_pkg': 'php5-fpm', @@ -26,6 +27,7 @@ 'RedHat': { 'php_pkg': 'php', 'apc_pkg': 'php-pecl-apc', + 'cgi_pkg': 'php-cgi', 'cli_pkg': 'php-cli', 'curl_pkg': 'curl', 'fpm_pkg': 'php-fpm',