Browse Source

[users.sls] touch /etc/nginx/.htpasswd

master
Arthur Lutz 6 years ago
parent
commit
f3ef626ec4
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      nginx/users.sls

+ 4
- 0
nginx/users.sls View File

@@ -5,6 +5,10 @@ htpasswd:
pkg.installed:
- name: {{ nginx.apache_utils }}

touch /etc/nginx/.htpasswd:
cmd.run:
- creates: /etc/nginx/.htpasswd

make sure {{ htauth }} exists:
file.exists:
- name: {{ htauth }}

Loading…
Cancel
Save