php-formula/php/init.sls

21 lines
463 B
Plaintext
Raw Normal View History

2014-01-02 05:51:53 +01:00
{% from "php/map.jinja" import php with context %}
{% if grains['os_family']=="Debian" %}
2014-10-25 02:29:03 +02:00
{% 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 %}
2013-07-30 00:27:43 +02:00
php:
2014-12-13 08:19:59 +01:00
pkg.installed:
- name: {{ php.php_pkg }}