From 4fb34973f0ae541141cb4c7d4ce3631ef37059b2 Mon Sep 17 00:00:00 2001 From: llnu Date: Thu, 30 Apr 2020 12:00:54 +0200 Subject: [PATCH] [balazs] finished exercises --- balazs/dot-cdist/files/motd | 6 ++++++ balazs/dot-cdist/manifest | 0 balazs/dot-cdist/manifest/init | 14 ++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 balazs/dot-cdist/files/motd delete mode 100644 balazs/dot-cdist/manifest create mode 100644 balazs/dot-cdist/manifest/init diff --git a/balazs/dot-cdist/files/motd b/balazs/dot-cdist/files/motd new file mode 100644 index 0000000..5bff464 --- /dev/null +++ b/balazs/dot-cdist/files/motd @@ -0,0 +1,6 @@ +_____ __ _____________ ______ ______ +___ | / /___ ____ /__ /( )_______ ___________ ____ /________________ /_______ ___ _____________ +__ |/ /_ / / /_ /__ /_|/__ ___/ _ ___/_ / / /_ __ \ _ \_ ___/_ __ \ __ `/_ | / / _ \_ __ \ +_ /| / / /_/ /_ / _ / _(__ ) / /__ _ /_/ /_ /_/ / __/ / _ / / / /_/ /__ |/ // __/ / / / +/_/ |_/ \__,_/ /_/ /_/ /____/ \___/ _\__, / /_.___/\___//_/ /_/ /_/\__,_/ _____/ \___//_/ /_/ + /____/ diff --git a/balazs/dot-cdist/manifest b/balazs/dot-cdist/manifest deleted file mode 100644 index e69de29..0000000 diff --git a/balazs/dot-cdist/manifest/init b/balazs/dot-cdist/manifest/init new file mode 100644 index 0000000..eadb079 --- /dev/null +++ b/balazs/dot-cdist/manifest/init @@ -0,0 +1,14 @@ +case "$__target_host" in + localhost) + # Indicate that the target host is configured with cdist + __file /etc/cdist-configured + + # Copy a cool motd from the type's file directory + __file /etc/motd --state present --source "$__files/motd" + + __package emacs --state present + + __timezone Europe/Zurich +;; +esac +