Saltstack Official PHP Formula
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- {% from "php/map.jinja" import php with context %}
-
- {% set version = salt['pillar.get']('php:mongo_version', none) %}
-
- include:
- - php
- - php.dev
- - php.pear
-
- php-mongo:
- pecl.installed:
- - name: {{ php.mongo_pecl }}
- - require:
- - pkg: {{ php.pear_pkg }}
- - defaults: True
- {% if version is not none %}
- - version: {{ version }}
- {% endif %}
-
- php-mongo-conf:
- file.managed:
- - name: {{ php.ext_conf_path }}/mongo.ini
- - contents: |
- extension={{ php.mongo_ext }}
- - require:
- - pkg: {{ php.php_pkg }}
-
- php-mongo-enable:
- cmd.run:
- - name: php5enmod mongo
- - require:
- - file: php-mongo-conf
|