Mercurial > code > home > repos > infra
diff system.py @ 194:0d37dde619d0
zfs now serving from ditto, new pool is stor7
author | drewp@bigasterisk.com |
---|---|
date | Wed, 14 Jun 2023 17:00:13 -0700 |
parents | 522f26c8f691 |
children | 2595cf510c5d |
line wrap: on
line diff
--- a/system.py Mon Jun 12 13:08:17 2023 -0700 +++ b/system.py Wed Jun 14 17:00:13 2023 -0700 @@ -54,6 +54,7 @@ files.template(src="templates/webforward.service.j2", dest=f"/etc/systemd/system/web_forward_{port}.service", port=port) systemd.service(service=f'web_forward_{port}', enabled=True, restarted=True) +# todo move to k8s (and run on ditto, and record pool status too) def zfs_metrics(): files.put(src='files/zfs_metrics/zfs_space_metrics.sh', dest='/opt/zfs_metrics/zfs_space_metrics.sh') files.put(src='files/zfs_metrics/zfs.mtail', dest='/opt/zfs_metrics/zfs.mtail') @@ -78,7 +79,7 @@ if host.name in ['bang', 'pipe', 'ditto']: no_sleep() -if host.name == 'bang': +if host.name in ['bang', 'ditto']: nfs_server() zfs_metrics()