[cdist #3] create __colourful_file type

This commit is contained in:
elf 2020-05-09 02:59:33 +09:00
parent b6240df604
commit 6d8a54a1b5
3 changed files with 13 additions and 1 deletions

View file

@ -1,6 +1,7 @@
case "$__target_host" in case "$__target_host" in
# Everybody has this # Everybody has this
localhost) localhost)
__my_computer #__my_computer
__colourful_file
;; ;;
esac esac

View file

@ -0,0 +1,10 @@
#!/bin/sh
DOMAIN_NAME="$__object_id"
COLOUR=$(cat "$__object/parameter/colour")
__file ~/colourful \
--mode 0644 --source - <<EOF
colour=$COLOUR
EOF

View file

@ -0,0 +1 @@
colour