Merge pull request #10 from giannello/master

Add MySQL native driver extension
This commit is contained in:
Seth House 2014-04-09 11:15:40 -06:00
commit 05f81e7248
4 changed files with 26 additions and 0 deletions

View File

@ -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``
------------

6
php/cli.sls Normal file
View File

@ -0,0 +1,6 @@
{% from "php/map.jinja" import php with context %}
php-cli:
pkg:
- installed
- name: {{ php.cli_pkg }}

View File

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

6
php/mysqlnd.sls Normal file
View File

@ -0,0 +1,6 @@
{% from "php/map.jinja" import php with context %}
php-mysqlnd:
pkg:
- installed
- name: {{ php.mysqlnd_pkg }}