Saltstack Official PHP Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 line
528B

  1. {% from "php/map.jinja" import php with context %}
  2. {% if not 'ng' in salt['pillar.get']('php', {}) %}
  3. {% if grains['os_family']=="Debian" %}
  4. {% set use_ppa = salt['pillar.get']('php:use_ppa', none) %}
  5. {% if use_ppa is not none %}
  6. {% set ppa_name = salt['pillar.get']('php:ppa_name', 'ondrej/php5') %}
  7. php54:
  8. pkgrepo.managed:
  9. - ppa: {{ ppa_name }}
  10. pkg.latest:
  11. - name: php5
  12. - refresh: True
  13. {% endif %}
  14. {% endif %}
  15. php:
  16. pkg.installed:
  17. - name: {{ php.php_pkg }}
  18. {% endif %}