1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00
Commit graph

279 commits

Author SHA1 Message Date
Matt Layher
5468c23b4f
nixos/servnerr-3: update IPv6 prefix alerting
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-08-17 13:58:40 -04:00
Matt Layher
f80f0b5742
nixos/lib/vargen: update for new addressing
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-08-17 12:21:26 -04:00
Matt Layher
d20e529556
nixos/routnerr-2: disable miniupnpd, re-enable auto updates
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-08-17 12:12:40 -04:00
Matt Layher
79d5fe7182
nixos/routnerr-2: enable stable CoreRAD on lab0
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-08-07 15:57:07 -04:00
Matt Layher
ca715ac54f
nixos/servnerr-3: remove CoreRAD br0 lab VLAN monitoring
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-08-07 15:30:17 -04:00
Matt Layher
57f83848e1
nixos/routnerr-2: temporarily enable miniupnpd
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-29 12:52:27 -04:00
Matt Layher
17a396a2f8 nixos/servnerr-3: rename interface, add lsscsi 2020-07-25 22:48:25 -04:00
Matt Layher
f71c1b86d2 nixos/servnerr-3: enable systemd watchdog 2020-07-23 09:46:43 -04:00
Matt Layher
cf87be70e4 nixos/routnerr-2: switch to upstream MM exporter 2020-07-22 12:55:40 -04:00
Matt Layher
4a146d24c3 nixos/lib/vargen: fix IPv6 subnet logic 2020-07-22 12:15:01 -04:00
Matt Layher
966e872f8d nixos/routnerr-2: open consrv port, disable rtp6 2020-07-20 12:16:46 -04:00
Matt Layher
c6fc68d271 nixos/routnerr-2: remove IPv6 LLA in favor of OS assigned 2020-07-20 12:16:21 -04:00
Matt Layher
1b331a1fa5 nixos/servnerr-3: modify CoreRAD monitor alerts to be less noisy 2020-07-20 10:06:44 -04:00
Matt Layher
200f00e5e3 nixos/servnerr-3: scrape modemmanager_exporter 2020-07-20 10:06:10 -04:00
Matt Layher
ea1b14bff8
nixos/lib: temporary out-of-tree package/module for modemmanager_exporter
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-16 13:53:30 -04:00
Matt Layher
32c7e00e6d
nixos/lib: add matt to networkmanager group
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-15 12:03:20 -04:00
Matt Layher
9622b6391a
nixos/routnerr-2: nixfmt
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-14 14:35:52 -04:00
Matt Layher
9e1d7d86fe
nixos/lib: install nmon
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-09 14:20:44 -04:00
Matt Layher
c810559f18 Merge branch 'master' of github:mdlayher/homelab 2020-07-08 20:19:02 -04:00
Matt Layher
e5e0fff85a nixo/routnerr-2: enable systemd watchdog 2020-07-08 20:18:46 -04:00
Matt Layher
f2c66e7942
nixos/routnerr-2: remove unused nftables ports
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-08 10:57:24 -04:00
Matt Layher
0f43f40131
nixos: fix nix-linter issues
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-08 10:22:48 -04:00
Matt Layher
6069a07d97
nixos/servnerr-3: Prometheus scrape both netlify websites
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-08 10:18:17 -04:00
Matt Layher
8d4663e571
nixos/servnerr-3: fix up CoreRAD alerting
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-08 10:13:42 -04:00
Matt Layher
da4e7207dc
nixos/servnerr-3: only alert on UPS time left if on battery
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-07 18:19:21 -04:00
Matt Layher
6f09861ce6
nixos/servnerr-3: apcupsd alerts, nixfmt
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-07 17:16:34 -04:00
Matt Layher
518932c242
nixos/lib: collapse nix and users config into system
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-07 17:03:15 -04:00
Matt Layher
25dbff15c6
nixos/lib: move node_exporter into system.nix
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-07 16:59:43 -04:00
Matt Layher
d5e25fe6ea
nixos/servnerr-3: adjust CoreRAD alerting for running multiple instances
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-07 16:45:05 -04:00
Matt Layher
8d5e05a3a1
nixos/servnerr-3: deploy CoreRAD in monitor mode
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-07 16:23:35 -04:00
Matt Layher
0a6ea760ec
nixos/servnerr-3: add consrv Prometheus targets
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-05 14:56:11 -04:00
Matt Layher
f4b05aa892
nixos/routnerr-2: only allow management/10GbE LANs to LTE
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-05 11:10:42 -04:00
Matt Layher
0bd9c7077e
nixos/routnerr-2: initial multi-WAN firewall configuration
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-05 10:22:16 -04:00
Matt Layher
63dde90aa3
nixos/routnerr-2: allow NM/MM to coexist with dhcpcd
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-05 10:12:59 -04:00
Matt Layher
d0581f74d6
nixos/servnerr-3: add monitnerr-2 Prometheus node scrape
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-02 13:53:36 -04:00
Matt Layher
363ad2ba4f
nixos/lib: add host monitnerr-2
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-02 13:53:05 -04:00
Matt Layher
12e95367a2
nixos/servnerr-3: re-enable node monitoring on monitnerr-1
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-27 15:53:21 -04:00
Matt Layher
7d136fdc3f
nixos/routnerr-2: move toward managing modem with NM/MM
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-26 09:50:53 -04:00
Matt Layher
382896a21b
nixos/servnerr-3: remove monitnerr-1 Prometheus targets
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-25 17:55:33 -04:00
Matt Layher
b8f8cb5648
nixos/servnerr-3: set kernel 5.6 for ZFS
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-25 17:55:22 -04:00
Matt Layher
325f564434
nixos/lib: remove noXlibs due to strange problems
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-25 17:55:04 -04:00
Matt Layher
396004a3b5
nixos/lib: add pkg-config
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-24 14:06:57 -04:00
Matt Layher
8b8ac0e2e5
nixos/lib: incorporate mbim-network feedback
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-24 09:55:03 -04:00
Matt Layher
32e6b5631f
nixos/lib: new module for mbim-network
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-23 14:37:43 -04:00
Matt Layher
42c5244477
nixos/lib: renumber tengb0 to VLAN 110 format
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-22 22:15:44 -04:00
Matt Layher
d93398076f
nixos/routnerr-2: WIP WWAN configuration
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-22 21:59:48 -04:00
Matt Layher
6c039ebd2e
nixos/lib: add matt to dialout group
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-22 21:24:13 -04:00
Matt Layher
eb9f64a8a5 Merge branch 'master' of github:mdlayher/homelab 2020-06-19 08:44:22 -04:00
Matt Layher
6e19742bac nixos/routnerr-2: add WWAN utilities, add minicom and unzip to lib 2020-06-19 08:44:04 -04:00
Matt Layher
9cb3778c03
nixos/servnerr-3: exclude HTPC from alerting
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-15 13:47:31 -04:00
Matt Layher
4fd972566a
nixos/servnerr-3: scrape theatnerr-1 windows_exporter
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-15 13:46:15 -04:00
Matt Layher
f97f63b8dd
nixos/lib: add theatnerr-1 host
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-15 13:41:58 -04:00
Matt Layher
693cca1e86
nix/routnerr-2: deduplicate dhcpd6 LANs list
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-14 14:58:19 -04:00
Matt Layher
4895bcd5fc
nix/routnerr-2: deduplicate dhcpd4 LANs list
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-14 14:55:25 -04:00
Matt Layher
f966896464
nixos/lib: add corp0 VLAN and configure on router
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-14 14:51:12 -04:00
Matt Layher
7c721af156
nixos/routnerr-2: use settings attribute list to configure CoreRAD
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-14 13:53:48 -04:00
Matt Layher
0aa6b16a9a
nixos/routnerr-2: explicitly import nixos-unstable-small
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-14 10:57:09 -04:00
Matt Layher
88904bc3ad
nixos/servnerr-3: explicitly import nixos-unstable-small
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-14 10:49:54 -04:00
Matt Layher
0d69c26839 nixos/servnerr-3: enable Prometheus admin API 2020-06-13 10:13:14 -04:00
Matt Layher
91b1d8b9d5
nixos/servnerr-3: upgrade to unstable Prometheus
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 19:43:23 -04:00
Matt Layher
f4ccb52e68
nixos/servnerr-3: move /var/lib/plex inside container
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 19:29:50 -04:00
Matt Layher
e267fa1689
nixos/servnerr-3: bump SNMP exporter configuration to 0.18.0
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 19:25:31 -04:00
Matt Layher
3467b63d52
nixos/servnerr-3: factor out Prometheus alerts, nixfmt
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 19:15:44 -04:00
Matt Layher
0b492dc489
nixos/servnerr-3: move containers into a new file
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 18:59:06 -04:00
Matt Layher
fa5d3beb81
nixos/servnerr-3: move Plex into a NixOS container
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 18:55:58 -04:00
Matt Layher
d08e8f2584
nixos/routnerr-2: add apcupsd_exporter
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 18:41:23 -04:00
Matt Layher
c3182c889f
nixos/routnerr-2: change iot0 prefix delegation ID to standard number
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 18:38:06 -04:00
Matt Layher
2e84c66b8d
nixos/servnerr-3: enable and scrape apcupsd_exporter on server and router
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 18:34:48 -04:00
Matt Layher
cacf9fb68f
nixos/servnerr-3: keylight_exporter is now upstream
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 18:31:49 -04:00
Matt Layher
bacf50eb61
nixos/servnerr-3: factor out staticScrape Prometheus function
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 18:07:16 -04:00
Matt Layher
14477541a5
nixos/servnerr-3: convert blackbox_exporter config to Nix, nixfmt
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 17:54:29 -04:00
Matt Layher
686cfcca6a Merge branch 'master' of github:mdlayher/homelab 2020-06-12 16:59:13 -04:00
Matt Layher
d3822057d3 nixos/lib: add gnumake 2020-06-12 16:59:09 -04:00
Matt Layher
d280009d02
nixos/servnerr-3: remove unifi SSH blackbox target
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-12 16:10:39 -04:00
Matt Layher
61c693252c
nixos/routnerr-2: CoreDNS no longer depends on wg0
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-11 14:16:44 -04:00
Matt Layher
a997598aae Merge branch 'master' of github:mdlayher/homelab 2020-06-11 14:13:42 -04:00
Matt Layher
29d5ad0ff6
nixos/routnerr-2: add nftables to allow connections from remote UniFi devices
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-11 14:05:57 -04:00
Matt Layher
6af56202db
nixos/servnerr-3: run UniFi controller in container
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-10 16:34:37 -04:00
Matt Layher
80ba4ddd83
nixo/routnerr-2: do not advertise MTU on tengb0
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-09 12:10:45 -04:00
Matt Layher
a438cd8405
nixos/servnerr-3: scrape apcupsd_exporter on nerr-3
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-08 09:37:52 -04:00
Matt Layher
57dec8fff9 nixos/servnerr-3: use MTU 9000 on 10GbE NIC 2020-06-07 11:02:58 -04:00
Matt Layher
0995678346
nixos/routnerr-2: set up CoreRAD upstream monitoring on wan0
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-07 11:01:33 -04:00
Matt Layher
1268d52557
nixos/servnerr-3: remove promlens shared links argument
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-06 13:53:21 -04:00
Matt Layher
479420fcdc nixos/routnerr-2: move alertmanager traefik backend 2020-06-06 12:18:01 -04:00
Matt Layher
beb1f99abf
nixos/servnerr-3: move Prometheus to server from Raspberry Pi
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-06 12:15:40 -04:00
Matt Layher
925462f4e1
nixos/servnerr-3: add /primary/vm ZFS filesystem
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-06 11:42:33 -04:00
Matt Layher
ead678a51f
nixos/routnerr-2: expose desktop IPv6 RTP through firewall
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-06 11:29:32 -04:00
Matt Layher
9d93b8c070 nixos/lib: install bandwhich 2020-06-06 10:04:44 -04:00
Matt Layher
4b2264de92
nixos/servnerr-3: add lab-corerad job, move existing alerts to prod job
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-03 11:37:40 -04:00
Matt Layher
50da252eef nixos/routnerr-2: skip production CoreRAD advertising on lab0 2020-06-03 11:23:22 -04:00
Matt Layher
3afeb76861 nixos/servnerr-3: fix Prometheus alert label 2020-06-01 14:32:10 -04:00
Matt Layher
4b61d093e6 nixos/servnerr-3: nixfmt Prometheus alerts 2020-06-01 14:11:04 -04:00
Matt Layher
763be23fcf
nixos/servnerr-3: add CoreRAD upstream monitoring alerts
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-06-01 14:10:17 -04:00
Matt Layher
b643fb4351
nixos/servnerr-3: fix Prometheus CoreRAD advertising interface status alert
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-05-31 20:21:24 -04:00
Matt Layher
5b50c2bb73
nixos/routnerr-2: nixfmt
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-05-29 17:15:06 -04:00
Matt Layher
1c86195c61
nixos/lib/vargen: template out WireGuard configuration
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-05-29 17:13:43 -04:00
Matt Layher
d7121b4df9 nixos/lib/vargen: WIP WireGuard support
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-05-29 17:02:21 -04:00
Matt Layher
d084bd881e Merge branch 'master' of github:mdlayher/homelab 2020-05-29 17:01:29 -04:00
Matt Layher
5879e84479
nixos/lib/vargen: move switch-office02 to management LAN
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-05-29 17:01:26 -04:00
Matt Layher
6d343cab9d
nixos/lib/vargen: infer server and WAN addresses automatically
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-05-29 16:22:40 -04:00