2014-01-02 05:51:53 +01:00
|
|
|
{% from "php/map.jinja" import php with context %}
|
2013-11-27 06:55:10 +01:00
|
|
|
|
2015-07-13 16:02:46 +02:00
|
|
|
{% if not 'ng' in salt['pillar.get']('php', {}) %}
|
|
|
|
|
2014-08-21 12:22:20 +02:00
|
|
|
{% if grains['os_family']=="Debian" %}
|
2014-10-25 02:29:03 +02:00
|
|
|
{% set use_ppa = salt['pillar.get']('php:use_ppa', none) %}
|
2014-08-21 12:22:20 +02:00
|
|
|
{% 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:
|
2014-01-02 06:23:17 +01:00
|
|
|
- name: {{ php.php_pkg }}
|
2015-07-13 16:02:46 +02:00
|
|
|
|
|
|
|
{% endif %}
|