浏览代码

Merge branch 'master' into test-harness

tags/v0.55.0
Megan 6 年前
父节点
当前提交
1ba5001b34
共有 2 个文件被更改,包括 11 次插入1 次删除
  1. +5
    -0
      README.rst
  2. +6
    -1
      nginx/users.sls

+ 5
- 0
README.rst 查看文件

@@ -83,6 +83,11 @@ Installs nginx from package, from the distribution repositories, the official ng

Builds and installs nginx from source.

``nginx.ng.certificates``
-------------------

Manages the deployment of nginx certificates.

``nginx.ng.config``
-------------------


+ 6
- 1
nginx/users.sls 查看文件

@@ -5,9 +5,14 @@ htpasswd:
pkg.installed:
- name: {{ nginx.apache_utils }}

touch {{ htauth }}:
cmd.run:
- creates: {{ htauth }}

make sure {{ htauth }} exists:
file.exists:
file.managed:
- name: {{ htauth }}
- makedirs: True

{% for name, user in pillar.get('users', {}).items() %}
{% if user['webauth'] is defined -%}

正在加载...
取消
保存