all
This commit is contained in:
parent
4df8adadb0
commit
7b39b906fb
9 changed files with 66 additions and 0 deletions
30
sami/my-cdist/.cdist/type/__all_in_one/manifest
Normal file
30
sami/my-cdist/.cdist/type/__all_in_one/manifest
Normal file
|
@ -0,0 +1,30 @@
|
|||
os="$(cat "$__global/explorer/os")"
|
||||
case "$os" in
|
||||
fedora)
|
||||
__package nmap-ncat --state present
|
||||
__package wireshark-cli --state present
|
||||
|
||||
;;
|
||||
debian)
|
||||
|
||||
__package netcat --state present
|
||||
__package tshark --state present
|
||||
|
||||
|
||||
alpine)
|
||||
|
||||
__package netcat-openbsd --state present
|
||||
__package tshark --state present
|
||||
;;
|
||||
|
||||
|
||||
*)
|
||||
echo "Don't know how to manage packages on: $os" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
__package socat --state present __package sipcalc --state present __package sudo --state present
|
||||
|
||||
|
1
sami/my-cdist/.cdist/type/__all_in_one/parameter/boolean
Normal file
1
sami/my-cdist/.cdist/type/__all_in_one/parameter/boolean
Normal file
|
@ -0,0 +1 @@
|
|||
--with-x
|
0
sami/my-cdist/.cdist/type/__all_in_one/singleton
Normal file
0
sami/my-cdist/.cdist/type/__all_in_one/singleton
Normal file
24
sami/my-cdist/.cdist/type/__colorful_file/manifest
Normal file
24
sami/my-cdist/.cdist/type/__colorful_file/manifest
Normal file
|
@ -0,0 +1,24 @@
|
|||
# required parameter
|
||||
#servername="$(cat "$__object/parameter/servername")"
|
||||
|
||||
# optional parameter
|
||||
if [ -f "$__object/parameter/optional" ]; then
|
||||
logdirectory="$(cat "$__object/parameter/optional")"
|
||||
fi
|
||||
|
||||
# optional parameter with predefined default
|
||||
#loglevel="$(cat "$__object/parameter/loglevel")"
|
||||
|
||||
# boolean parameter
|
||||
#if [ -f "$__object/parameter/use_ssl" ]; then
|
||||
# file exists -> True
|
||||
# do some fancy ssl stuff
|
||||
#fi
|
||||
|
||||
# parameter with multiple values
|
||||
#if [ -f "$__object/parameter/server_colorful" ]; then
|
||||
# for alias in $(cat "$__object/parameter/server_alias"); do
|
||||
# echo $alias > /some/where/useful
|
||||
#done
|
||||
#fi
|
||||
|
|
@ -0,0 +1 @@
|
|||
colorful
|
|
@ -0,0 +1,9 @@
|
|||
if [ -f "$__object/parameter/name" ]; then
|
||||
name="$(cat "$__object/parameter/name")"
|
||||
else
|
||||
name="$__object_id"
|
||||
fi
|
||||
|
||||
# Expect dpkg failing, if package is not known / installed
|
||||
dpkg -s "$name" 2>/dev/null || exit 0
|
||||
|
0
sami/my-cdist/.cdist/type/__my_firewall/manifest
Normal file
0
sami/my-cdist/.cdist/type/__my_firewall/manifest
Normal file
|
@ -0,0 +1 @@
|
|||
file
|
Loading…
Reference in a new issue