Saltstack Official PHP Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617
  1. {% set state = 'cli' %}
  2. {% include "php/ng/installed.jinja" %}
  3. {%- if salt['grains.get']('os_family') == "Debian" %}
  4. {% set current_php = salt['alternatives.show_current']('php') %}
  5. {% set phpng_version = salt['pillar.get']('php:ng:version', '7.0')|string %}
  6. php_{{ phpng_version }}_link:
  7. alternatives.set:
  8. - name: php
  9. - path: /usr/bin/php{{ phpng_version }}
  10. - require_in:
  11. - pkg: php_install_{{ state }}
  12. - onlyif:
  13. - which php
  14. - test {{ current_php }} != $(which php{{ phpng_version }})
  15. {% endif %}