2016-12-13 22:37:53 +01:00
|
|
|
{%- from "php/map.jinja" import php with context %}
|
2013-11-27 06:55:10 +01:00
|
|
|
|
2019-07-24 05:42:23 +02:00
|
|
|
include:
|
|
|
|
- php.deprecated
|
|
|
|
|
2016-12-13 22:37:53 +01:00
|
|
|
{%- if not 'ng' in salt['pillar.get']('php', {}) %}
|
2015-07-13 16:02:46 +02:00
|
|
|
|
2016-12-13 22:37:53 +01:00
|
|
|
{%- if grains['os'] == "Ubuntu" %}
|
|
|
|
{%- set use_external_repo = salt['pillar.get']('php:use_external_repo', False) %}
|
2016-03-29 11:01:11 +02:00
|
|
|
|
2016-12-13 22:37:53 +01:00
|
|
|
{%- if use_external_repo %}
|
|
|
|
{%- set external_repo_name = salt['pillar.get']('php:external_repo_name', 'ondrej/php') %}
|
2014-08-21 12:22:20 +02:00
|
|
|
|
2016-12-13 22:37:53 +01:00
|
|
|
php_from_ppa:
|
|
|
|
pkgrepo.managed:
|
|
|
|
- ppa: {{ external_repo_name }}
|
|
|
|
- env:
|
|
|
|
- LC_ALL: "C.UTF-8"
|
|
|
|
- require_in:
|
|
|
|
- pkg: php_from_ppa
|
|
|
|
pkg.latest:
|
|
|
|
- name: {{ php.php_pkg }}
|
|
|
|
- refresh: True
|
2014-08-21 12:22:20 +02:00
|
|
|
|
2016-12-13 22:37:53 +01:00
|
|
|
{%- endif %}
|
2016-03-29 11:01:11 +02:00
|
|
|
|
2016-12-13 22:37:53 +01:00
|
|
|
{%- endif %}
|
2014-08-21 12:22:20 +02:00
|
|
|
|
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
|
|
|
|
2016-12-13 22:37:53 +01:00
|
|
|
{%- endif %}
|