|
8 | 8 | {% set from_official = true %}
|
9 | 9 | {% set from_ppa = false %}
|
10 | 10 | {% set from_phusionpassenger = false %}
|
| 11 | + {% set from_openresty = false %} |
11 | 12 | {% elif nginx.install_from_ppa %}
|
12 | 13 | {% set from_official = false %}
|
13 | 14 | {% set from_ppa = true %}
|
14 | 15 | {% set from_phusionpassenger = false %}
|
| 16 | + {% set from_openresty = false %} |
15 | 17 | {% elif nginx.install_from_phusionpassenger %}
|
16 | 18 | {% set from_official = false %}
|
17 | 19 | {% set from_ppa = false %}
|
18 | 20 | {% set from_phusionpassenger = true %}
|
| 21 | + {% set from_openresty = false %} |
| 22 | +{% elif nginx.install_from_openresty %} |
| 23 | + {% set from_official = false %} |
| 24 | + {% set from_ppa = false %} |
| 25 | + {% set from_phusionpassenger = false %} |
| 26 | + {% set from_openresty = true %} |
19 | 27 | {% else %}
|
20 | 28 | {% set from_official = false %}
|
21 | 29 | {% set from_ppa = false %}
|
22 | 30 | {% set from_phusionpassenger = false %}
|
| 31 | + {% set from_openresty = false %} |
23 | 32 | {%- endif %}
|
24 | 33 |
|
25 | 34 | nginx_install:
|
@@ -52,6 +61,22 @@ nginx_official_repo:
|
52 | 61 | - watch_in:
|
53 | 62 | - pkg: nginx_install
|
54 | 63 |
|
| 64 | +openresty_official_repo: |
| 65 | + pkgrepo: |
| 66 | + {%- if from_openresty %} |
| 67 | + - managed |
| 68 | + {%- else %} |
| 69 | + - absent |
| 70 | + {%- endif %} |
| 71 | + - humanname: openresty apt repo |
| 72 | + - name: deb http://openresty.org/package/{{ grains['os'].lower() }}/ {{ grains['oscodename'] }} openresty |
| 73 | + - file: /etc/apt/sources.list.d/openresty-{{ grains['oscodename'] }}.list |
| 74 | + - key_url: https://openresty.org/package/pubkey.gpg |
| 75 | + - require_in: |
| 76 | + - pkg: nginx_install |
| 77 | + - watch_in: |
| 78 | + - pkg: nginx_install |
| 79 | +
|
55 | 80 | {%- if grains.os not in ('Debian',) %}
|
56 | 81 | ## applies to Ubuntu and derivatives only #}
|
57 | 82 | nginx_ppa_repo:
|
|
0 commit comments