X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=distro-end;h=434ca2aec0a5e0f923d773e1ac1f4b515e04f72f;hb=56c55d8e02cdd6ec67d2fe53cc03785d8876442e;hp=539856c1127e304105722eb6aade001f8bb035f8;hpb=fa5deaee2e0182ddfc7b39eea7ee2acedb259ddf;p=distro-setup diff --git a/distro-end b/distro-end index 539856c..434ca2a 100755 --- a/distro-end +++ b/distro-end @@ -842,7 +842,7 @@ EOF # also would be nice if erc supported # https://wiki.znc.in/self-message # https://wiki.znc.in/Query_buffers \ - # + # # for geekshed, there was no sasl support as far as I can tell, # so I set to msg nickserv to identify upon connect. if ! getent passwd znc > /dev/null; then @@ -1403,6 +1403,7 @@ tu /etc/schroot/desktop/fstab <<'EOF' /run/user/0 /run/user/0 none rw,bind 0 0 EOF +# todo: consider if this should use the new sysd-prom-fail sd /etc/systemd/system/schrootupdate.service <<'EOF' [Unit] Description=schrootupdate @@ -1888,8 +1889,7 @@ esac case $HOSTNAME in kd) - # ive got these + a needed dependency pinned to bullseye, just to get - # versions more in line with the main docs. + /a/bin/buildscripts/prometheus # Font awesome is needed for the alertmanager ui. pi prometheus-alertmanager prometheus prometheus-node-exporter fonts-font-awesome web-conf -p 9091 -f 9090 - apache2 i.b8.nz <<'EOF' @@ -1902,6 +1902,18 @@ AuthUserFile "/etc/prometheus-htpasswd" Require valid-user EOF + + web-conf -p 9094 -f 9093 - apache2 i.b8.nz <<'EOF' + +AuthType Basic +AuthName "basic_auth" +# created with +# htpasswd -c prometheus-htpasswd USERNAME +AuthUserFile "/etc/prometheus-htpasswd" +Require valid-user + +EOF + # by default, the alertmanager web ui is not enabled other than a page # that suggests to use the amtool cli. that tool is good, but you cant # silence things nearly as fast. @@ -1944,8 +1956,7 @@ Require valid-user EOF # For work, i think we will just use the firewall for hosts in the main data center, and - # apache/nginx + tls + basic auth outside of it. or consider stunnel. - + # vpn for hosts outside it. # TODO: figure out how to detect the ping failure and try again.