Merge pull request #138 from arthurlogilab/patch-3
touch htpasswd file if it doesn't exist
This commit is contained in:
commit
99b6ee9976
@ -5,6 +5,10 @@ htpasswd:
|
||||
pkg.installed:
|
||||
- name: {{ nginx.apache_utils }}
|
||||
|
||||
make sure {{ htauth }} exists:
|
||||
file.exists:
|
||||
- name: {{ htauth }}
|
||||
|
||||
{% for name, user in pillar.get('users', {}).items() %}
|
||||
{% if user['webauth'] is defined -%}
|
||||
|
||||
@ -18,4 +22,4 @@ nginx_user_{{name}}:
|
||||
- pkg: htpasswd
|
||||
|
||||
{% endif -%}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user