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.

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