php-formula/php/init.sls
Wolodja Wentland 8e9e51d692 Remove dotdeb from php state
The included state was never submitted in
https://github.com/saltstack-formulas/php-formula/pull/77 and we
therefore remove inclusion here to allow users to use the php state
again.
2016-08-25 16:50:19 +02:00

27 lines
530 B
Plaintext

{% from "php/map.jinja" import php with context %}
{% if not 'ng' in salt['pillar.get']('php', {}) %}
{% if grains['os_family']=="Debian" %}
{% set use_ppa = salt['pillar.get']('php:use_ppa', none) %}
{% 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 %}
php:
pkg.installed:
- name: {{ php.php_pkg }}
{% endif %}