2014-01-02 06:01:12 +01:00
|
|
|
{% set php = salt['grains.filter_by']({
|
|
|
|
'Debian': {
|
2014-01-02 06:20:11 +01:00
|
|
|
'php_pkg': 'php5',
|
|
|
|
'apc_pkg': 'php-apc',
|
2015-04-25 12:35:29 +02:00
|
|
|
'apcu_pkg': 'php5-apcu',
|
2014-04-09 20:06:30 +02:00
|
|
|
'cgi_pkg': 'php5-cgi',
|
2014-04-09 16:52:01 +02:00
|
|
|
'cli_pkg': 'php5-cli',
|
2014-01-02 06:20:11 +01:00
|
|
|
'curl_pkg': 'php5-curl',
|
|
|
|
'fpm_pkg': 'php5-fpm',
|
|
|
|
'gd_pkg': 'php5-gd',
|
2015-05-17 16:50:16 +02:00
|
|
|
'oauth_pkg': 'php5-oauth',
|
2014-08-11 03:51:16 +02:00
|
|
|
'intl_pkg': 'php5-intl',
|
2014-05-22 16:43:58 +02:00
|
|
|
'json_pkg': 'php5-json',
|
2015-12-16 14:24:03 +01:00
|
|
|
'mail_pkg': 'php-mail',
|
2014-02-06 14:43:13 +01:00
|
|
|
'mbstring_pkg': 'php5',
|
2014-01-02 06:20:11 +01:00
|
|
|
'mcrypt_pkg': 'php5-mcrypt',
|
2014-01-17 14:02:32 +01:00
|
|
|
'memcache_pkg': 'php5-memcache',
|
|
|
|
'memcached_pkg': 'php5-memcached',
|
2014-01-02 06:20:11 +01:00
|
|
|
'mysql_pkg': 'php5-mysql',
|
2014-04-09 16:41:35 +02:00
|
|
|
'mysqlnd_pkg': 'php5-mysqlnd',
|
2014-12-17 10:12:30 +01:00
|
|
|
'pear_pkg': 'php-pear',
|
|
|
|
'soap_pkg': 'php-soap',
|
2015-03-09 22:22:48 +01:00
|
|
|
'sqlite_pkg': 'php5-sqlite',
|
2014-12-17 10:36:53 +01:00
|
|
|
'redis_pkg': 'php5-redis',
|
2014-01-02 06:20:11 +01:00
|
|
|
'fpm_service': 'php5-fpm',
|
2015-05-20 20:10:23 +02:00
|
|
|
'xml_pkg': 'php5',
|
2014-02-14 14:38:20 +01:00
|
|
|
'imagick_pkg': 'php5-imagick',
|
|
|
|
'suhosin_pkg': 'php5-suhosin',
|
|
|
|
'imap_pkg': 'php5-imap',
|
|
|
|
'adodb_pkg': 'php5-adodb',
|
|
|
|
'pgsql_pkg': 'php5-pgsql',
|
|
|
|
'ldap_pkg': 'php5-ldap',
|
2014-05-19 22:54:29 +02:00
|
|
|
'php_ini': '/etc/php5/apache2/php.ini',
|
2014-08-21 12:22:20 +02:00
|
|
|
'dev_pkg': 'php5-dev',
|
|
|
|
'mongo_pecl': 'mongo',
|
|
|
|
'mongo_ext': 'mongo.so',
|
|
|
|
'ext_conf_path': '/etc/php5/mods-available',
|
2015-02-20 11:12:19 +01:00
|
|
|
'local_bin': '/usr/local/bin',
|
|
|
|
'temp_dir': '/tmp',
|
2015-07-20 01:01:34 +02:00
|
|
|
'composer_bin': 'composer',
|
|
|
|
'composer_hash': 'sha256=6a1ba6495f0bdb8e7735a7a76948b61c54b4a57b56837a9e9f93b4a0ac1f83a5',
|
2013-11-27 06:55:10 +01:00
|
|
|
},
|
|
|
|
'RedHat': {
|
2014-01-02 06:20:11 +01:00
|
|
|
'php_pkg': 'php',
|
2014-01-02 06:25:55 +01:00
|
|
|
'apc_pkg': 'php-pecl-apc',
|
2015-04-25 12:35:29 +02:00
|
|
|
'apcu_pkg': 'php-pecl-apcu',
|
2014-04-09 20:06:30 +02:00
|
|
|
'cgi_pkg': 'php-cgi',
|
2014-04-09 16:52:01 +02:00
|
|
|
'cli_pkg': 'php-cli',
|
2014-01-02 06:40:16 +01:00
|
|
|
'curl_pkg': 'curl',
|
2014-01-02 06:25:55 +01:00
|
|
|
'fpm_pkg': 'php-fpm',
|
|
|
|
'gd_pkg': 'php-gd',
|
2015-05-17 16:50:16 +02:00
|
|
|
'oauth_pkg': 'php-oauth',
|
2014-08-11 03:51:16 +02:00
|
|
|
'intl_pkg': 'php-intl',
|
2014-05-22 16:43:58 +02:00
|
|
|
'json_pkg': 'php-common',
|
2014-02-06 14:43:13 +01:00
|
|
|
'mbstring_pkg': 'php-mbstring',
|
2014-01-02 06:25:55 +01:00
|
|
|
'mcrypt_pkg': 'php-mcrypt',
|
2014-01-17 14:02:32 +01:00
|
|
|
'memcache_pkg': 'php-pecl-memcache',
|
|
|
|
'memcached_pkg': 'php-pecl-memcached',
|
2014-01-02 06:25:55 +01:00
|
|
|
'mysql_pkg': 'php-mysql',
|
2014-04-09 16:41:35 +02:00
|
|
|
'mysqlnd_pkg': 'php-mysqlnd',
|
2014-12-17 10:12:30 +01:00
|
|
|
'pear_pkg': 'php-pear',
|
|
|
|
'soap_pkg': 'php-soap',
|
2015-03-09 22:22:48 +01:00
|
|
|
'sqlite_pkg': 'php5-sqlite',
|
2014-12-17 10:36:53 +01:00
|
|
|
'redis_pkg': 'php-redis',
|
2014-01-02 06:25:55 +01:00
|
|
|
'fpm_service': 'php-fpm',
|
2014-12-17 10:12:30 +01:00
|
|
|
'xml_pkg': 'php-xml',
|
2014-11-23 22:52:09 +01:00
|
|
|
'imagick_pkg': 'php-pecl-imagick',
|
2014-02-14 14:38:20 +01:00
|
|
|
'suhosin_pkg': 'php-suhosin',
|
|
|
|
'imap_pkg': 'php-imap',
|
|
|
|
'adodb_pkg': 'php-adodb',
|
|
|
|
'pgsql_pkg': 'php-pgsql',
|
|
|
|
'ldap_pkg': 'php-ldap',
|
2014-05-19 22:54:29 +02:00
|
|
|
'php_ini': '/etc/php.ini',
|
2014-08-21 12:22:20 +02:00
|
|
|
'dev_pkg': 'php-dev',
|
|
|
|
'mongo_pecl': 'mongo',
|
|
|
|
'mongo_ext': 'mongo.so',
|
|
|
|
'ext_conf_path': '/etc/php5/conf.d',
|
2015-02-20 11:12:19 +01:00
|
|
|
'local_bin': '/usr/local/bin',
|
|
|
|
'temp_dir': '/tmp',
|
2015-07-20 01:01:34 +02:00
|
|
|
'composer_bin': 'composer',
|
|
|
|
'composer_hash': 'sha256=6a1ba6495f0bdb8e7735a7a76948b61c54b4a57b56837a9e9f93b4a0ac1f83a5',
|
2013-11-27 06:55:10 +01:00
|
|
|
},
|
2015-03-09 22:22:48 +01:00
|
|
|
'Suse': {
|
|
|
|
'php_pkg': 'php5',
|
|
|
|
'cli_pkg': 'php5-cli',
|
|
|
|
'curl_pkg': 'php5-curl',
|
|
|
|
'fpm_pkg': 'php5-fpm',
|
|
|
|
'gd_pkg': 'php5-gd',
|
|
|
|
'intl_pkg': 'php5-intl',
|
|
|
|
'json_pkg': 'php5-json',
|
|
|
|
'mbstring_pkg': 'php5-mbstring',
|
|
|
|
'mcrypt_pkg': 'php5-mcrypt',
|
|
|
|
'mysql_pkg': 'php5-mysql',
|
|
|
|
'pear_pkg': 'php5-pear',
|
|
|
|
'soap_pkg': 'php5-soap',
|
|
|
|
'sqlite_pkg': 'php5-sqlite',
|
|
|
|
'fpm_service': 'php5-fpm',
|
|
|
|
'xml_pkg': ['php5-xmlreader','php5-xmlwriter','php5-xmlrpc'],
|
|
|
|
'suhosin_pkg': 'php5-suhosin',
|
|
|
|
'imap_pkg': 'php5-imap',
|
|
|
|
'adodb_pkg': 'php5-dba',
|
|
|
|
'pgsql_pkg': 'php5-pgsql',
|
|
|
|
'ldap_pkg': 'php5-ldap',
|
|
|
|
'php_ini': '/etc/php5/apache2/php.ini',
|
|
|
|
'dev_pkg': 'php5-devel',
|
|
|
|
'mongo_pecl': 'mongo',
|
|
|
|
'mongo_ext': 'mongo.so',
|
|
|
|
'ext_conf_path': '/etc/php5/conf.d',
|
|
|
|
'local_bin': '/usr/local/bin',
|
|
|
|
'temp_dir': '/tmp',
|
2015-07-20 01:01:34 +02:00
|
|
|
'composer_bin': 'composer',
|
|
|
|
'composer_hash': 'sha256=6a1ba6495f0bdb8e7735a7a76948b61c54b4a57b56837a9e9f93b4a0ac1f83a5',
|
2015-03-09 22:22:48 +01:00
|
|
|
},
|
2014-01-02 06:02:15 +01:00
|
|
|
}, merge=salt['pillar.get']('php:lookup')) %}
|