diff --git a/README.rst b/README.rst index dfb753f..deea666 100644 --- a/README.rst +++ b/README.rst @@ -134,6 +134,11 @@ Installs the php-pgsql package. Installs the php-soap package. +``php.sqlite`` +-------------- + +Installs the php-sqlite package, + ``php.suhosin`` --------------- @@ -320,6 +325,11 @@ Installs the php-pgsql package. Installs the php-soap package. +``php.ng.sqlite`` +----------------- + +Installs the php-sqlite package, + ``php.ng.suhosin`` ------------------ diff --git a/php/map.jinja b/php/map.jinja index 6f88ed9..31ac870 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', + 'sqlite_pkg': 'php-sqlite', 'redis_pkg': 'php5-redis', 'fpm_service': 'php5-fpm', 'xml_pkg': 'php5-xml', @@ -50,6 +51,7 @@ 'mysqlnd_pkg': 'php-mysqlnd', 'pear_pkg': 'php-pear', 'soap_pkg': 'php-soap', + 'sqlite_pkg': 'php-sqlite', 'redis_pkg': 'php-redis', 'fpm_service': 'php-fpm', 'xml_pkg': 'php-xml', diff --git a/php/ng/map.jinja b/php/ng/map.jinja index cb8774e..7c49daf 100644 --- a/php/ng/map.jinja +++ b/php/ng/map.jinja @@ -19,6 +19,7 @@ 'mysqlnd': 'php5-mysqlnd', 'pear': 'php-pear', 'soap': 'php-soap', + 'sqlite': 'php-sqlite', 'xml': 'php5-xmlrpc', 'redis': 'php5-redis', 'imagick': 'php5-imagick', @@ -67,6 +68,7 @@ 'mysqlnd': 'php-mysqlnd', 'pear': 'php-pear', 'soap': 'php-soap', + 'sqlite': 'php-sqlite', 'xml': 'php-xml', 'redis': 'php-redis', 'imagick': 'php-imagick', diff --git a/php/ng/sqlite.sls b/php/ng/sqlite.sls new file mode 100644 index 0000000..ac788eb --- /dev/null +++ b/php/ng/sqlite.sls @@ -0,0 +1,2 @@ +{% set state = 'sqlite' %} +{% include "php/ng/installed.jinja" %} diff --git a/php/sqlite.sls b/php/sqlite.sls new file mode 100644 index 0000000..97a2064 --- /dev/null +++ b/php/sqlite.sls @@ -0,0 +1,5 @@ +{% from "php/map.jinja" import php with context %} + +php-sqlite: + pkg.installed: + - name: {{ php.sqlite_pkg }}