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.

12345678910111213141516171819202122232425262728293031
  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 (grains['oscodename']=="Jessie" and salt['pillar.get']('php:version')=="7.0") or salt['pillar.get']('php:use_dotdeb') %}
  6. include:
  7. - php.dotdeb
  8. {% endif %}
  9. {% if use_ppa is not none %}
  10. {% set ppa_name = salt['pillar.get']('php:ppa_name', 'ondrej/php5') %}
  11. php54:
  12. pkgrepo.managed:
  13. - ppa: {{ ppa_name }}
  14. pkg.latest:
  15. - name: php5
  16. - refresh: True
  17. {% endif %}
  18. {% endif %}
  19. php:
  20. pkg.installed:
  21. - name: {{ php.php_pkg }}
  22. {% endif %}