Pārlūkot izejas kodu

Add repo manually (work-around for saltstack/salt#23543)

tags/v0.34.0
Ryan Hayle pirms 9 gadiem
vecāks
revīzija
1016376bcf
1 mainītis faili ar 12 papildinājumiem un 0 dzēšanām
  1. +12
    -0
      php/ng/installed.jinja

+ 12
- 0
php/ng/installed.jinja Parādīt failu



{% set ppa_name = salt['pillar.get']('php:ppa_name', 'ondrej/php5') %} {% set ppa_name = salt['pillar.get']('php:ppa_name', 'ondrej/php5') %}


php_ppa_env_{{ state }}:
cmd.run:
- name: apt-add-repository -y ppa:{{ ppa_name }}
- env:
- LC_ALL: C.UTF-8

php_ppa_{{ state }}: php_ppa_{{ state }}:
pkgrepo.managed: pkgrepo.managed:
- ppa: {{ ppa_name }} - ppa: {{ ppa_name }}
- require:
- cmd: php_ppa_env_{{ state }}
- require_in:
- pkg: php_install_{{ state }}
pkg.latest: pkg.latest:
- name: {{ state }} - name: {{ state }}
- pkgs: {{ pkgs|json() }} - pkgs: {{ pkgs|json() }}
- refresh: True - refresh: True
- onchanges:
- pkgrepo: php_ppa_{{ state }}
{% endif %} {% endif %}
{% endif %} {% endif %}



Notiek ielāde…
Atcelt
Saglabāt