[cdist #3] create __colourful_file type
This commit is contained in:
parent
b6240df604
commit
6d8a54a1b5
3 changed files with 13 additions and 1 deletions
|
@ -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
|
||||||
|
|
10
kjg/dot-cdist/type/__colourful_file/manifest
Normal file
10
kjg/dot-cdist/type/__colourful_file/manifest
Normal 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
|
1
kjg/dot-cdist/type/__colourful_file/parameter/optional
Normal file
1
kjg/dot-cdist/type/__colourful_file/parameter/optional
Normal file
|
@ -0,0 +1 @@
|
||||||
|
colour
|
Loading…
Reference in a new issue