Przeglądaj źródła

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

Emmanuel Bouthenot 11 lat temu
rodzic
commit
1dbf5ddd77

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