summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Wiese <tobias@tobiaswiese.com>2020-05-14 13:56:41 +0200
committerTobias Wiese <tobias@tobiaswiese.com>2020-05-14 13:56:41 +0200
commit1d3f54ef5966e8b10304f0ed364a7ad7d3a9c73f (patch)
treee42bcf6e5ef7343e26aab400370aed55738d938e
parent34fe8a57df416e7e2b8be0c954a1fa6d6d596c95 (diff)
elog: Monitor elog services
Monitor the services of elog: - DNS Zone - Phabricator - Phabricator sshd Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
-rw-r--r--zones.d/master/hosts.conf11
-rw-r--r--zones.d/master/services.conf8
2 files changed, 19 insertions, 0 deletions
diff --git a/zones.d/master/hosts.conf b/zones.d/master/hosts.conf
index eaa89ec..faea915 100644
--- a/zones.d/master/hosts.conf
+++ b/zones.d/master/hosts.conf
@@ -26,4 +26,15 @@ object Host "new-babbage.server.tobiaswiese.net" {
}
vars.pgsql = { }
+
+ // elog
+ vars.dns_zones["elog.dev"] = {
+ dig_record_type = "SOA"
+ }
+ vars.extra_sshd["elog-phabricator"] = { }
+ vars.http_vhosts = {
+ "phabricator.elog.dev" = {
+ http_uri = "/status/"
+ }
+ }
}
diff --git a/zones.d/master/services.conf b/zones.d/master/services.conf
index 6f2be19..fc362d8 100644
--- a/zones.d/master/services.conf
+++ b/zones.d/master/services.conf
@@ -51,6 +51,14 @@ apply Service "dns-" for (dns_zone => config in host.vars.dns_zones) {
vars += config
}
+apply Service "ssh-" for (name => config in host.vars.extra_sshd) {
+ import "generic-network-service"
+
+ check_command = "ssh"
+
+ vars += config
+}
+
template Service "http" {
import "generic-network-service"