diff --git a/php/map.jinja b/php/map.jinja index 8a02870..6f88ed9 100644 --- a/php/map.jinja +++ b/php/map.jinja @@ -17,6 +17,7 @@ 'mysqlnd_pkg': 'php5-mysqlnd', 'pear_pkg': 'php-pear', 'soap_pkg': 'php-soap', + 'redis_pkg': 'php5-redis', 'fpm_service': 'php5-fpm', 'xml_pkg': 'php5-xml', 'imagick_pkg': 'php5-imagick', @@ -49,6 +50,7 @@ 'mysqlnd_pkg': 'php-mysqlnd', 'pear_pkg': 'php-pear', 'soap_pkg': 'php-soap', + 'redis_pkg': 'php-redis', 'fpm_service': 'php-fpm', 'xml_pkg': 'php-xml', 'imagick_pkg': 'php-pecl-imagick', diff --git a/php/ng/map.jinja b/php/ng/map.jinja index 3c9dc58..9680fe8 100644 --- a/php/ng/map.jinja +++ b/php/ng/map.jinja @@ -19,6 +19,7 @@ 'pear': 'php-pear', 'soap': 'php-soap', 'xml': 'php5-xmlrpc', + 'redis': 'php5-redis', 'imagick': 'php5-imagick', 'suhosin': 'php5-suhosin', 'imap': 'php5-imap', @@ -63,6 +64,7 @@ 'pear': 'php-pear', 'soap': 'php-soap', 'xml': 'php-xml', + 'redis': 'php-redis', 'imagick': 'php-imagick', 'suhosin': 'php-suhosin', 'imap': 'php-imap', diff --git a/php/ng/redis.sls b/php/ng/redis.sls new file mode 100644 index 0000000..6afe4a3 --- /dev/null +++ b/php/ng/redis.sls @@ -0,0 +1,2 @@ +{% set state = 'redis' %} +{% include "php/ng/installed.jinja" %} diff --git a/php/redis.sls b/php/redis.sls new file mode 100644 index 0000000..9cf4eb4 --- /dev/null +++ b/php/redis.sls @@ -0,0 +1,5 @@ +{% from "php/map.jinja" import php with context %} + +php-redis: + pkg.installed: + - name : {{ php.redis_pkg }}