diff --git a/README.rst b/README.rst index b1caf52..e7f4fa7 100644 --- a/README.rst +++ b/README.rst @@ -30,6 +30,11 @@ Installs the php-apc package. Installs the php-adodb package. +``php.cli`` +------------ + +Installs the php-cli package. + ``php.curl`` ------------ @@ -89,6 +94,11 @@ Installs the php-memcached package. Installs the php-mysql package. +``php.mysqlnd`` +------------ + +Installs the php-mysqlnd package. + ``php.pear`` ------------ diff --git a/php/cli.sls b/php/cli.sls new file mode 100644 index 0000000..dab4ed3 --- /dev/null +++ b/php/cli.sls @@ -0,0 +1,6 @@ +{% from "php/map.jinja" import php with context %} + +php-cli: + pkg: + - installed + - name: {{ php.cli_pkg }} diff --git a/php/map.jinja b/php/map.jinja index c67bca1..329e530 100644 --- a/php/map.jinja +++ b/php/map.jinja @@ -2,6 +2,7 @@ 'Debian': { 'php_pkg': 'php5', 'apc_pkg': 'php-apc', + 'cli_pkg': 'php5-cli', 'curl_pkg': 'php5-curl', 'fpm_pkg': 'php5-fpm', 'gd_pkg': 'php5-gd', @@ -10,6 +11,7 @@ 'memcache_pkg': 'php5-memcache', 'memcached_pkg': 'php5-memcached', 'mysql_pkg': 'php5-mysql', + 'mysqlnd_pkg': 'php5-mysqlnd', 'pear_pkg': ' php-pear', 'soap_pkg': ' php-soap', 'fpm_service': 'php5-fpm', @@ -24,6 +26,7 @@ 'RedHat': { 'php_pkg': 'php', 'apc_pkg': 'php-pecl-apc', + 'cli_pkg': 'php-cli', 'curl_pkg': 'curl', 'fpm_pkg': 'php-fpm', 'gd_pkg': 'php-gd', @@ -32,6 +35,7 @@ 'memcache_pkg': 'php-pecl-memcache', 'memcached_pkg': 'php-pecl-memcached', 'mysql_pkg': 'php-mysql', + 'mysqlnd_pkg': 'php-mysqlnd', 'pear_pkg': ' php-pear', 'soap_pkg': ' php-soap', 'fpm_service': 'php-fpm', diff --git a/php/mysqlnd.sls b/php/mysqlnd.sls new file mode 100644 index 0000000..2dda9f3 --- /dev/null +++ b/php/mysqlnd.sls @@ -0,0 +1,6 @@ +{% from "php/map.jinja" import php with context %} + +php-mysqlnd: + pkg: + - installed + - name: {{ php.mysqlnd_pkg }}