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',