e89a0666b8
In RedHat, Fedora and CentOS mbstring and xml are not compiled by default in PHP In Debian these are compiled by default so the generic php5 package was specified
33 lines
1013 B
Django/Jinja
33 lines
1013 B
Django/Jinja
{% set php = salt['grains.filter_by']({
|
|
'Debian': {
|
|
'php_pkg': 'php5',
|
|
'apc_pkg': 'php-apc',
|
|
'curl_pkg': 'php5-curl',
|
|
'fpm_pkg': 'php5-fpm',
|
|
'gd_pkg': 'php5-gd',
|
|
'mbstring_pkg': 'php5',
|
|
'mcrypt_pkg': 'php5-mcrypt',
|
|
'memcache_pkg': 'php5-memcache',
|
|
'memcached_pkg': 'php5-memcached',
|
|
'mysql_pkg': 'php5-mysql',
|
|
'pear_pkg': ' php-pear',
|
|
'fpm_service': 'php5-fpm',
|
|
'xml_pkg': ' php5',
|
|
},
|
|
'RedHat': {
|
|
'php_pkg': 'php',
|
|
'apc_pkg': 'php-pecl-apc',
|
|
'curl_pkg': 'curl',
|
|
'fpm_pkg': 'php-fpm',
|
|
'gd_pkg': 'php-gd',
|
|
'mbstring_pkg': 'php-mbstring',
|
|
'mcrypt_pkg': 'php-mcrypt',
|
|
'memcache_pkg': 'php-pecl-memcache',
|
|
'memcached_pkg': 'php-pecl-memcached',
|
|
'mysql_pkg': 'php-mysql',
|
|
'pear_pkg': ' php-pear',
|
|
'fpm_service': 'php-fpm',
|
|
'xml_pkg': ' php-xml',
|
|
},
|
|
}, merge=salt['pillar.get']('php:lookup')) %}
|