]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm/config/triggers_test.go
config: permit "all" and host group in .InGroup of templates
[safcm/safcm.git] / cmd / safcm / config / triggers_test.go
index 43c3a557882255e870a737ecd9c43ccc7b012368..63d702aeda97b9bfed0e1545771082a32a3b53e8 100644 (file)
@@ -90,6 +90,19 @@ This is GNU/Linux host
 {{if .InGroup "detected_freebsd"}}
 This is FreeBSD host
 {{end}}
+
+{{if .InGroup "all"}}
+all
+{{end}}
+{{if .InGroup "host1.example.org"}}
+host1.example.org
+{{end}}
+{{if .InGroup "host2"}}
+host2
+{{end}}
+{{if .InGroup "host3.example.net"}}
+host3.example.net
+{{end}}
 `),
                                },
                                "/etc/rc.local": {