Merge pull request #138 from arthurlogilab/patch-3

touch htpasswd file if it doesn't exist
This commit is contained in:
Forrest 2016-11-16 09:40:49 -08:00 committed by GitHub
commit 99b6ee9976

View File

@ -5,6 +5,10 @@ htpasswd:
pkg.installed: pkg.installed:
- name: {{ nginx.apache_utils }} - name: {{ nginx.apache_utils }}
make sure {{ htauth }} exists:
file.exists:
- name: {{ htauth }}
{% for name, user in pillar.get('users', {}).items() %} {% for name, user in pillar.get('users', {}).items() %}
{% if user['webauth'] is defined -%} {% if user['webauth'] is defined -%}