diff --git a/dot-cdist/manifest/init b/dot-cdist/manifest/init new file mode 100644 index 0000000..cb8410a --- /dev/null +++ b/dot-cdist/manifest/init @@ -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 + diff --git a/dot-cdist/type/motd b/dot-cdist/type/motd new file mode 100644 index 0000000..9a78acb --- /dev/null +++ b/dot-cdist/type/motd @@ -0,0 +1,6 @@ +# Use cdist defaults +__motd + +# Supply source file from a different type +__motd --source "$__type/files/my-motd" +