From e577efdd8255f8525b54a020523c9a8f30eeac98 Mon Sep 17 00:00:00 2001 From: samuel Date: Thu, 30 Apr 2020 12:47:20 +0200 Subject: [PATCH] motd and init files added --- dot-cdist/manifest/init | 15 +++++++++++++++ dot-cdist/type/motd | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 dot-cdist/manifest/init create mode 100644 dot-cdist/type/motd 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" +