From cb4515b467bbb9a20f7005721e468bb6f7fa229d Mon Sep 17 00:00:00 2001 From: Alexey Genus Date: Thu, 8 Dec 2016 00:10:19 +0300 Subject: [PATCH] Add php-mongodb and php-mongo plugins support --- README.rst | 10 ++++++++++ php/ng/map.jinja | 2 ++ php/ng/mongo.sls | 2 ++ php/ng/mongodb.sls | 2 ++ 4 files changed, 16 insertions(+) create mode 100644 php/ng/mongo.sls create mode 100644 php/ng/mongodb.sls diff --git a/README.rst b/README.rst index 153a14c..afde98e 100644 --- a/README.rst +++ b/README.rst @@ -372,6 +372,16 @@ Disabled on opensuse need server:php:extensions repo Installs the php-memcached package. Disabled on opensuse need server:php:extensions repo +``php.ng.mongo`` +-------------------- + +Installs the php-mongo package. + +``php.ng.mongodb`` +-------------------- + +Installs the php-mongodb package. + ``php.ng.mysql`` ---------------- diff --git a/php/ng/map.jinja b/php/ng/map.jinja index 6bd8de8..0e9cb31 100644 --- a/php/ng/map.jinja +++ b/php/ng/map.jinja @@ -17,6 +17,7 @@ 'intl': 'php7.0-intl', 'mbstring': 'php7.0-mbstring', 'mcrypt': 'php7.0-mcrypt', + 'mongodb': 'php7.0-mongodb', 'mysql': 'php7.0-mysql', 'pspell': 'php7.0-pspell', 'redis': 'php7.0-redis', @@ -1045,6 +1046,7 @@ 'mcrypt': 'php5-mcrypt', 'memcache': 'php5-memcache', 'memcached': 'php5-memcached', + 'mongo': 'php5-mongo', 'mysql': 'php5-mysql', 'mysqlnd': 'php5-mysqlnd', 'mdb2': 'php-mdb2', diff --git a/php/ng/mongo.sls b/php/ng/mongo.sls new file mode 100644 index 0000000..1904895 --- /dev/null +++ b/php/ng/mongo.sls @@ -0,0 +1,2 @@ +{% set state = 'mongo' %} +{% include "php/ng/installed.jinja" %} diff --git a/php/ng/mongodb.sls b/php/ng/mongodb.sls new file mode 100644 index 0000000..22ed84e --- /dev/null +++ b/php/ng/mongodb.sls @@ -0,0 +1,2 @@ +{% set state = 'mongodb' %} +{% include "php/ng/installed.jinja" %}