From 920ba9b1a41b1964e3857cec51e63295749853ae Mon Sep 17 00:00:00 2001 From: Mark Lee Date: Sun, 4 May 2014 14:20:48 -0700 Subject: [PATCH] Optionally include nginx.users via a pillar value --- nginx/init.sls | 2 ++ pillar.example | 1 + 2 files changed, 3 insertions(+) diff --git a/nginx/init.sls b/nginx/init.sls index 165cc9c..b2659aa 100644 --- a/nginx/init.sls +++ b/nginx/init.sls @@ -1,6 +1,8 @@ include: - nginx.common +{% if pillar.get('nginx', {}).get('user_auth_enabled', true) %} - nginx.users +{% endif %} {% if pillar.get('nginx', {}).get('install_from_source') %} - nginx.source {% else %} diff --git a/pillar.example b/pillar.example index 05019aa..c7f117b 100644 --- a/pillar.example +++ b/pillar.example @@ -1,6 +1,7 @@ nginx: install_from_source: True use_upstart: True + user_auth_enabled: True with_luajit: False with_openresty: True modules: