|
|
|
|
|
|
|
|
{% elif grains['os_family'] == "RedHat" and (state == 'cli' or state == 'fpm' or state == 'php') %} |
|
|
{% elif grains['os_family'] == "RedHat" and (state == 'cli' or state == 'fpm' or state == 'php') %} |
|
|
{% set use_scl_repo = salt['pillar.get']('php:use_scl_repo', False) %} |
|
|
{% set use_scl_repo = salt['pillar.get']('php:use_scl_repo', False) %} |
|
|
{% set scl_php_version = salt['pillar.get']('php:scl_php_version', 71) %} |
|
|
{% set scl_php_version = salt['pillar.get']('php:scl_php_version', 71) %} |
|
|
|
|
|
{% set enable_php_repo = salt['pillar.get']('php:ng:lookup:enable_php_repo', False) %} |
|
|
{% if use_scl_repo and grains['os'] == 'CentOS' %} |
|
|
{% if use_scl_repo and grains['os'] == 'CentOS' %} |
|
|
php_centos_scl_enable_{{ state }}: |
|
|
php_centos_scl_enable_{{ state }}: |
|
|
pkg.installed: |
|
|
pkg.installed: |
|
|
|
|
|
|
|
|
pkg.installed: |
|
|
pkg.installed: |
|
|
- name: {{ state }} |
|
|
- name: {{ state }} |
|
|
- pkgs: {{ pkgs|json() }} |
|
|
- pkgs: {{ pkgs|json() }} |
|
|
|
|
|
{% if enable_php_repo %} |
|
|
|
|
|
- enablerepo: {{ enable_php_repo }} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% for pkg in specials %} |
|
|
{% for pkg in specials %} |
|
|
|
|
|
|