Added pillar example
This commit is contained in:
parent
eb2bc62f5a
commit
d11dd3f887
4
README.rst
Normal file
4
README.rst
Normal file
@ -0,0 +1,4 @@
|
||||
nginx
|
||||
=====
|
||||
|
||||
Install nginx
|
7
init.sls
7
init.sls
@ -1,8 +1,9 @@
|
||||
include:
|
||||
- nginx.common
|
||||
- nginx.users
|
||||
# To install from a package
|
||||
# If you want to install from source
|
||||
# simply replace this comment
|
||||
{% if pillar.get('nginx', {}).get('install_from_source') %}
|
||||
- nginx.source
|
||||
{% else %}
|
||||
- nginx.package
|
||||
{% endif -%}
|
||||
|
||||
|
8
pillar.example
Normal file
8
pillar.example
Normal file
@ -0,0 +1,8 @@
|
||||
nginx:
|
||||
install_from_source: True
|
||||
with_luajit: False
|
||||
with_openresty: True
|
||||
modules:
|
||||
headers-more:
|
||||
source: http://github.com/agentzh/headers-more-nginx-module/tarball/v0.21
|
||||
source_hash: sha1=DAFJAKSDFJAKDFJ
|
Loading…
Reference in New Issue
Block a user