php-formula/php/init.sls

32 lines
694 B
Plaintext
Raw Normal View History

2014-01-02 05:51:53 +01:00
{% from "php/map.jinja" import php with context %}
{% if not 'ng' in salt['pillar.get']('php', {}) %}
{% if grains['os_family']=="Debian" %}
2014-10-25 02:29:03 +02:00
{% set use_ppa = salt['pillar.get']('php:use_ppa', none) %}
{% if (grains['oscodename']=="Jessie" and salt['pillar.get']('php:version')=="7.0") or salt['pillar.get']('php:use_dotdeb') %}
include:
- php.dotdeb
{% endif %}
{% if use_ppa is not none %}
{% set ppa_name = salt['pillar.get']('php:ppa_name', 'ondrej/php5') %}
php54:
pkgrepo.managed:
- ppa: {{ ppa_name }}
pkg.latest:
- name: php5
- refresh: True
{% endif %}
{% endif %}
2013-07-30 00:27:43 +02:00
php:
2014-12-13 08:19:59 +01:00
pkg.installed:
- name: {{ php.php_pkg }}
{% endif %}