This repository was archived by the owner on Oct 11, 2022. It is now read-only.
File tree 3 files changed +15
-16
lines changed
3 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 1
1
zendserver formula
2
2
================
3
3
4
+ 0.1.6 (05-02-2016)
5
+ - Added NGINX Mainline support to the repo
4
6
5
7
0.1.5 (19-03-2015)
6
8
- Added extension management
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ zendserver:
16
16
# separate users
17
17
enable_itk: False
18
18
19
+ # Whether to use the nginx mainline repo or default stable
20
+ nginx_mainline: False
21
+
19
22
# Whether to bootstrap the Zend Server, otherwise you'll be
20
23
# asked to do so when you login to the ZendServer admin page.
21
24
bootstrap: False
Original file line number Diff line number Diff line change
1
+ # Install Nginx repository
2
+ {%- set repo_url = ' http://nginx.org/packages' %}
3
+
1
4
{%- set lsb_codename = salt[' grains.get' ](' oscodename' ) %}
2
5
{%- set lsb_distrib_id = salt[' grains.get' ](' lsb_distrib_id' ) %}
3
- # Install Nginx repository
6
+
7
+ # Handle mainline switch
8
+ {%- if salt[' pillar.get' ](' zendserver:nginx_mainline' , False ) %}
9
+ {%- set repo_url = repo_url ~ ' /mainline' %}
10
+ {%- endif %}
4
11
5
12
nginx_repo:
6
13
pkgrepo.managed :
7
14
- humanname: Nginx PPA
8
- {%- if lsb_distrib_id == ' Debian' %}
9
- - dist: {{ lsb_codename }}
10
- - name: deb http://nginx.org/packages/debian/ {{ lsb_codename }} nginx
11
- {%- elif lsb_distrib_id == ' Ubuntu' %}
12
- {%- if lsb_codename == ' vivid' %}
13
- - name: deb http://nginx.org/packages/ubuntu/ utopic nginx
14
- - dist: utopic
15
- {%- else %}
16
- - name: deb http://nginx.org/packages/ubuntu/ {{ lsb_codename }} nginx
17
- - dist: {{ lsb_codename }}
18
- {%- endif %}
19
- {%- else %}
20
- - dist: {{ lsb_codename }}
21
- - name: deb http://nginx.org/packages/ {{ lsb_distrib_id }}/ {{ lsb_codename }} nginx
22
- {%- endif %}
15
+ - name: deb {{ repo_url }}/{{ lsb_distrib_id }}/ {{ lsb_codename }} nginx
23
16
- file: /etc/apt/sources.list.d/nginx.list
24
17
- keyid: 7BD9BF62
25
18
- key_url: http://nginx.org/keys/nginx_signing.key
26
19
- keyserver: keyserver.ubuntu.com
27
20
- require_in:
28
21
- pkg: nginx
22
+ - clean_file: True
You can’t perform that action at this time.
0 commit comments