소스 검색

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