From 0d0cf6827d69b722d9c585fb12942174b5f78ab8 Mon Sep 17 00:00:00 2001 From: Nicholas J Date: Thu, 22 May 2014 10:43:58 -0400 Subject: [PATCH] This commit adds the php-json package. The json features of php have been moved to a separate package in the following distributions: - Debian >= 8 (jessie) - Ubuntu >= 13.04 Changes: - Added json.sls - Updated map.jinja - Updated README.md --- README.rst | 5 +++++ php/json.sls | 6 ++++++ php/map.jinja | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 php/json.sls diff --git a/README.rst b/README.rst index 906fbba..8fb2a4d 100644 --- a/README.rst +++ b/README.rst @@ -68,6 +68,11 @@ Installs the php-imagick package. Installs the php-imap package. +``php.json`` +------------ + +Installs the php-json package. + ``php.ldap`` ------------ diff --git a/php/json.sls b/php/json.sls new file mode 100644 index 0000000..2d80a2f --- /dev/null +++ b/php/json.sls @@ -0,0 +1,6 @@ +{% from "php/map.jinja" import php with context %} + +php-json: + pkg: + - installed + - name: {{ php.json_pkg }} diff --git a/php/map.jinja b/php/map.jinja index 029d76f..ce8ee29 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', + 'json_pkg': 'php5-json', 'mbstring_pkg': 'php5', 'mcrypt_pkg': 'php5-mcrypt', 'memcache_pkg': 'php5-memcache', @@ -32,6 +33,7 @@ 'curl_pkg': 'curl', 'fpm_pkg': 'php-fpm', 'gd_pkg': 'php-gd', + 'json_pkg': 'php-common', 'mbstring_pkg': 'php-mbstring', 'mcrypt_pkg': 'php-mcrypt', 'memcache_pkg': 'php-pecl-memcache',