diff --git a/README.md b/README.md deleted file mode 100644 index 0ad302c..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -nginx -===== diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..41d0468 --- /dev/null +++ b/README.rst @@ -0,0 +1,4 @@ +nginx +===== + +Install nginx \ No newline at end of file diff --git a/init.sls b/init.sls index 0d47ea5..165cc9c 100644 --- a/init.sls +++ b/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 -%} diff --git a/pillar.example b/pillar.example new file mode 100644 index 0000000..3e90e79 --- /dev/null +++ b/pillar.example @@ -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