From 0c66177ed09e5f243762ae8122162489ffb7d8b9 Mon Sep 17 00:00:00 2001 From: "Chin Kiong, Ng" Date: Wed, 17 Dec 2014 17:36:53 +0800 Subject: [PATCH] Added PHP Redis module --- php/map.jinja | 2 ++ php/ng/map.jinja | 2 ++ php/ng/redis.sls | 2 ++ php/redis.sls | 5 +++++ 4 files changed, 11 insertions(+) create mode 100644 php/ng/redis.sls create mode 100644 php/redis.sls diff --git a/php/map.jinja b/php/map.jinja index fed10a2..fa104c1 100644 --- a/php/map.jinja +++ b/php/map.jinja @@ -15,6 +15,7 @@ 'memcached_pkg': 'php5-memcached', 'mysql_pkg': 'php5-mysql', 'mysqlnd_pkg': 'php5-mysqlnd', + 'redis_pkg': 'php5-redis', 'pear_pkg': ' php-pear', 'soap_pkg': ' php-soap', 'fpm_service': 'php5-fpm', @@ -48,6 +49,7 @@ 'mysql_pkg': 'php-mysql', 'mysqlnd_pkg': 'php-mysqlnd', 'pear_pkg': ' php-pear', + 'redis_pkg': 'php-redis', 'soap_pkg': ' php-soap', 'fpm_service': 'php-fpm', 'xml_pkg': ' php-xml', diff --git a/php/ng/map.jinja b/php/ng/map.jinja index e1200ed..ba3bfd5 100644 --- a/php/ng/map.jinja +++ b/php/ng/map.jinja @@ -17,6 +17,7 @@ 'mysql': 'php5-mysql', 'mysqlnd': 'php5-mysqlnd', 'pear': ' php-pear', + 'redis': 'php5-redis', 'soap': ' php-soap', 'xml': ' php5-xml', 'imagick': 'php5-imagick', @@ -61,6 +62,7 @@ 'mysql': 'php-mysql', 'mysqlnd': 'php-mysqlnd', 'pear': ' php-pear', + 'redis': 'php-redis', 'soap': ' php-soap', 'xml': ' php-xml', 'imagick': 'php-imagick', 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 }}