{%- from "php/map.jinja" import php with context %} {%- set version = salt['pillar.get']('php:mongo_version', none) %} include: - php.deprecated - php - php.xml - php.dev - php.pear php-mongo: pecl.installed: - name: {{ php.mongo_pecl }} - defaults: True {%- if version is not none %} - version: {{ version }} {%- endif %} - require: - pkg: {{ php.pear_pkg }} - pkg: build_pkgs build_pkgs: pkg.installed: - pkgs: {{ php.build_pkgs }} php-mongo-conf: file.managed: - name: {{ php.ext_conf_path }}/mongo.ini - contents: | extension={{ php.mongo_ext }} - require: - pkg: {{ php.php_pkg }} {%- if salt['grains.get']('os_family') == "Debian" %} php-mongo-enable: cmd.run: - name: {{ php.phpenmod_command }} mongo - require: - file: php-mongo-conf {%- endif %}