parent
3c6f0e343e
commit
7cf3af2972
@ -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 -%}
|
||||||
|
|
||||||
@ -18,4 +22,4 @@ nginx_user_{{name}}:
|
|||||||
- pkg: htpasswd
|
- pkg: htpasswd
|
||||||
|
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user