Browse Source

Merge pull request #138 from arthurlogilab/patch-3

touch htpasswd file if it doesn't exist
susefix
Forrest 8 years ago
parent
commit
99b6ee9976
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      nginx/users.sls

+ 5
- 1
nginx/users.sls View File

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 -%}


- pkg: htpasswd - pkg: htpasswd


{% endif -%} {% endif -%}
{% endfor %}
{% endfor %}

Loading…
Cancel
Save