]> ruderich.org/simon Gitweb - safcm/safcm.git/blob - cmd/safcm/testdata/project/group/files/etc/motd
config: permit "all" and host group in .InGroup of templates
[safcm/safcm.git] / cmd / safcm / testdata / project / group / files / etc / motd
1 Welcome to
2 {{- if .IsHost "host1.example.org"}} Host ONE
3 {{- else if "host2"}} Host TWO
4 {{- end}}
5
6 {{if .InGroup "detected_linux"}}
7 This is GNU/Linux host
8 {{end}}
9 {{if .InGroup "detected_freebsd"}}
10 This is FreeBSD host
11 {{end}}
12
13 {{if .InGroup "all"}}
14 all
15 {{end}}
16 {{if .InGroup "host1.example.org"}}
17 host1.example.org
18 {{end}}
19 {{if .InGroup "host2"}}
20 host2
21 {{end}}
22 {{if .InGroup "host3.example.net"}}
23 host3.example.net
24 {{end}}