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.

23 line
506B

  1. # Installs php-cli and manages the associated php.ini
  2. include:
  3. - php.cli.install
  4. - php.cli.ini
  5. {% set pillar_php_version = salt['pillar.get']('php:version', '7.0') %}
  6. {% if pillar_php_version is iterable and pillar_php_version is not string %}
  7. extend:
  8. {% for version in pillar_php_version %}
  9. php_cli_ini_{{ version }}:
  10. file:
  11. - require:
  12. - sls: php.cli.install
  13. {% endfor %}
  14. {% else %}
  15. extend:
  16. php_cli_ini:
  17. file:
  18. - require:
  19. - sls: php.cli.install
  20. {% endif %}