From 0503ba52b361645fe0e94c84d9d0ab65e92a4761 Mon Sep 17 00:00:00 2001 From: Michael Hubbard Date: Sun, 10 Aug 2014 21:51:16 -0400 Subject: [PATCH] New module: intl --- README.rst | 10 ++++++++++ php/intl.sls | 6 ++++++ php/map.jinja | 2 ++ php/ng/intl.sls | 2 ++ php/ng/map.jinja | 2 ++ 5 files changed, 22 insertions(+) create mode 100644 php/intl.sls create mode 100644 php/ng/intl.sls diff --git a/README.rst b/README.rst index 2ab6c6d..a5c482d 100644 --- a/README.rst +++ b/README.rst @@ -57,6 +57,11 @@ Installs the php-fpm package, starts the service, and enables it. Installs the php-gd package. +``php.intl`` +---------- + +Installs the php-intl package. + ``php.imagick`` --------------- @@ -239,6 +244,11 @@ Installs the php-imagick package. Installs the php-imap package. +``php.ng.intl`` +--------------- + +Installs the php-intl package. + ``php.ng.json`` --------------- diff --git a/php/intl.sls b/php/intl.sls new file mode 100644 index 0000000..683562e --- /dev/null +++ b/php/intl.sls @@ -0,0 +1,6 @@ +{% from "php/map.jinja" import php with context %} + +php-intl: + pkg: + - installed + - name: {{ php.intl_pkg }} diff --git a/php/map.jinja b/php/map.jinja index 91a7a64..baf4ae2 100644 --- a/php/map.jinja +++ b/php/map.jinja @@ -7,6 +7,7 @@ 'curl_pkg': 'php5-curl', 'fpm_pkg': 'php5-fpm', 'gd_pkg': 'php5-gd', + 'intl_pkg': 'php5-intl', 'json_pkg': 'php5-json', 'mbstring_pkg': 'php5', 'mcrypt_pkg': 'php5-mcrypt', @@ -34,6 +35,7 @@ 'curl_pkg': 'curl', 'fpm_pkg': 'php-fpm', 'gd_pkg': 'php-gd', + 'intl_pkg': 'php-intl', 'json_pkg': 'php-common', 'mbstring_pkg': 'php-mbstring', 'mcrypt_pkg': 'php-mcrypt', diff --git a/php/ng/intl.sls b/php/ng/intl.sls new file mode 100644 index 0000000..2e85c2e --- /dev/null +++ b/php/ng/intl.sls @@ -0,0 +1,2 @@ +{% set state = 'intl' %} +{% include "php/ng/installed.jinja" %} diff --git a/php/ng/map.jinja b/php/ng/map.jinja index 492e8c6..e1200ed 100644 --- a/php/ng/map.jinja +++ b/php/ng/map.jinja @@ -9,6 +9,7 @@ 'curl': 'php5-curl', 'fpm': 'php5-fpm', 'gd': 'php5-gd', + 'intl': 'php5-intl', 'mbstring': 'php5', 'mcrypt': 'php5-mcrypt', 'memcache': 'php5-memcache', @@ -52,6 +53,7 @@ 'curl': ['php-common', 'curl'], 'fpm': 'php-fpm', 'gd': 'php-gd', + 'intl': 'php-intl', 'mbstring': 'php-mbstring', 'mcrypt': 'php-mcrypt', 'memcache': 'php-pecl-memcache',