motd and init files added

This commit is contained in:
samialazar 2020-04-30 12:47:20 +02:00
parent 3b6e17319d
commit e577efdd82
2 changed files with 21 additions and 0 deletions

15
dot-cdist/manifest/init Normal file
View file

@ -0,0 +1,15 @@
case "$__target_host" in
localhost)
# Indicate that the target host is configured with cdist
__file /etc/cdist-configured
# Copy
__file /etc/motd --state present --source "$__type/motd"
__package emacs --state present
__timezone Europe/Zurich
;;
esac

6
dot-cdist/type/motd Normal file
View file

@ -0,0 +1,6 @@
# Use cdist defaults
__motd
# Supply source file from a different type
__motd --source "$__type/files/my-motd"