2023-02-01 15:15:04 +00:00
|
|
|
- hosts: muninservers
|
|
|
|
vars:
|
|
|
|
nginx_domain: "munin.afpy.org"
|
|
|
|
nginx_certificates: ["{{ nginx_domain }}"]
|
|
|
|
nginx_conf: |
|
|
|
|
server
|
|
|
|
{
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
server_name {{ nginx_domain }};
|
|
|
|
return 301 https://$server_name$request_uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
server
|
|
|
|
{
|
2023-02-13 21:40:47 +00:00
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
2023-02-01 15:15:04 +00:00
|
|
|
server_name {{ nginx_domain }};
|
|
|
|
root /var/cache/munin/www;
|
|
|
|
index index.html;
|
|
|
|
|
|
|
|
include snippets/letsencrypt-{{ nginx_domain }}.conf;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
autoindex on;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ^~ /munin-cgi/munin-cgi-graph/ {
|
|
|
|
fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
2023-02-13 09:49:21 +00:00
|
|
|
fastcgi_pass unix:/run/munin/fcgi-graph.sock;
|
2023-02-01 15:15:04 +00:00
|
|
|
include fastcgi_params;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-13 13:27:23 +00:00
|
|
|
munin_extra_hosts: |
|
|
|
|
[hkis04.hackinscience.org]
|
|
|
|
address [2001:4b98:dc0:43:216:3eff:fe1e:a9f0]
|
|
|
|
[bot01.hackinscience.org]
|
|
|
|
address [2001:4b98:dc0:43:216:3eff:fe41:d21a]
|
|
|
|
[bot02.hackinscience.org]
|
|
|
|
address [2001:4b98:dc0:43:216:3eff:fea8:e01c]
|
|
|
|
|
2023-02-01 15:15:04 +00:00
|
|
|
roles:
|
|
|
|
- munin_server
|
|
|
|
- nginx
|
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
roles:
|
|
|
|
- common # For nftables's *_NEIGHBORS
|
|
|
|
- munin_client
|