浏览代码

Add support of admin authentication in apache2 and nginx for various probes

Emmanuel Bouthenot 12 年之前
父节点
当前提交
1dbf5ddd77
共有 3 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      group_vars/all
  2. 1 0
      roles/webserver/templates/apache2/auth_admin.j2
  3. 1 0
      roles/webserver/templates/nginx/auth_admin.j2

+ 2 - 0
group_vars/all

@@ -27,4 +27,6 @@ with_ssh: True
 ssh_port: 2222
 ssh_ecdsa_key: True
 
+http_auth_admin_password: seVDetGvSs7nA # openssl passwd -crypt adm123in
+
 # vim: ft=yaml

+ 1 - 0
roles/webserver/templates/apache2/auth_admin.j2

@@ -0,0 +1 @@
+admin:{{ http_auth_admin_password }}

+ 1 - 0
roles/webserver/templates/nginx/auth_admin.j2

@@ -0,0 +1 @@
+admin:{{ http_auth_admin_password }}