Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% from "php/map.jinja" import php with context %}
- include:
- - php
- - newrelic
- php-fpm:
- pkg.installed:
- - name: {{ php.php_fpm_pkg }}
- - refresh: True
- - version: {{ salt['pillar.get']('php:lookup:config:version') }}
- {% if grains['os'] == 'Debian' or grains['os'] == 'Ubuntu' %}
- - watch:
- {% if grains['os'] == 'Debian' %}
- - pkgrepo: dotdeb
- {% endif %}
- - pkg: php-cli
- - file: /etc/apt/preferences.d/php
- {% endif %}
- file.recurse:
- - name: {{ php.configdir }}
- - source: {{ salt['pillar.get']('php:lookup:config:conf_tmpl') }}
- - template: jinja
- - user: root
- - include_empty: True
- - context:
- - newrelic_appname: {{ salt['pillar.get']('newrelic:lookup:config:appname') }}
- - newrelic_license: {{ salt['pillar.get']('newrelic:lookup:config:license') }}
- - memcached_ip: 10.0.2.5
- - memcached_port: 11211
- - watch_in:
- - service: php-fpm
- service.running:
- - name: {{ php.php_fpm_service }}
- - enable: True
- - watch:
- - pkg: {{ php.php_fpm_pkg }}
- - sls: newrelic
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement