X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm%2Ftestdata%2Fproject%2Fgroup%2Ffiles%2Fetc%2Fmotd;fp=cmd%2Fsafcm%2Ftestdata%2Fproject%2Fgroup%2Ffiles%2Fetc%2Fmotd;h=be82b961004ee5393ada2caff757679b6c9eacc2;hb=f2f2bc47e8729548f3c10117f7f008b547c4afc5;hp=0000000000000000000000000000000000000000;hpb=dc0d431a778a50e6732b9eb91384a07a207b772d;p=safcm%2Fsafcm.git diff --git a/cmd/safcm/testdata/project/group/files/etc/motd b/cmd/safcm/testdata/project/group/files/etc/motd new file mode 100644 index 0000000..be82b96 --- /dev/null +++ b/cmd/safcm/testdata/project/group/files/etc/motd @@ -0,0 +1,11 @@ +Welcome to +{{- if .IsHost "host1.example.org"}} Host ONE +{{- else if "host2"}} Host TWO +{{- end}} + +{{if .InGroup "detected_linux"}} +This is GNU/Linux host +{{end}} +{{if .InGroup "detected_freebsd"}} +This is FreeBSD host +{{end}}