forked from ungleich-public/cdist
find conf/type -type f -exec sed -i 's/ *$//' {} \;
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
5bcb807ebd
commit
3818548d9a
15 changed files with 18 additions and 18 deletions
|
@ -17,7 +17,7 @@ REQUIRED PARAMETERS
|
|||
-------------------
|
||||
state::
|
||||
The state the ppa should be in, either "enabled" or "disabled".
|
||||
|
||||
|
||||
|
||||
OPTIONAL PARAMETERS
|
||||
-------------------
|
||||
|
|
|
@ -65,8 +65,8 @@ case "$state_should" in
|
|||
echo rm -rf \"$destination\"
|
||||
fi
|
||||
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
*)
|
||||
echo "Unknown state: $state_should" >&2
|
||||
exit 1
|
||||
;;
|
||||
|
|
|
@ -33,7 +33,7 @@ case "$state_should" in
|
|||
echo touch \"$destination\"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Mode settings
|
||||
if [ -f "$__object/parameter/mode" ]; then
|
||||
echo chmod \"$(cat "$__object/parameter/mode")\" \"$destination\"
|
||||
|
@ -55,7 +55,7 @@ case "$state_should" in
|
|||
if [ "$exists" = "yes" ]; then
|
||||
echo rm -f \"$destination\"
|
||||
fi
|
||||
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
|
|
|
@ -10,7 +10,7 @@ cdist-type__file - Manage files
|
|||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
This cdist type allows you to create files, remove files and set file
|
||||
This cdist type allows you to create files, remove files and set file
|
||||
attributes on the target.
|
||||
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ if grep -q "^${name}:" "$__object/explorer/group"; then
|
|||
echo groupmod "$@" "$name"
|
||||
else
|
||||
true
|
||||
fi
|
||||
fi
|
||||
else
|
||||
for property in $(ls .); do
|
||||
new_value="$(cat "$property")"
|
||||
|
|
|
@ -37,7 +37,7 @@ if [ "$value_is" != "$value_should" ]; then
|
|||
cat << DONE
|
||||
sed -i '/^${key}/d' "$file"
|
||||
DONE
|
||||
else
|
||||
else
|
||||
# change value
|
||||
cat << DONE
|
||||
awk -F "$delimiter" '
|
||||
|
|
|
@ -35,7 +35,7 @@ EXAMPLES
|
|||
--------
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
# Set the maximum system user id
|
||||
# Set the maximum system user id
|
||||
__key_value SYS_UID_MAX --file /etc/login.defs --value 666 --delimiter ' '
|
||||
|
||||
# Same with fancy id
|
||||
|
|
|
@ -26,7 +26,7 @@ name::
|
|||
The name of the package to install. Default is to use the object_id as the
|
||||
package name.
|
||||
version::
|
||||
The version of the package to install. Default is to install the version
|
||||
The version of the package to install. Default is to install the version
|
||||
choosen by the local package manager.
|
||||
type::
|
||||
The package type to use. Default is determined based on the $os explorer
|
||||
|
|
|
@ -78,7 +78,7 @@ eof
|
|||
eof
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
*)
|
||||
echo "Unknown state: $state" >&2
|
||||
exit 1
|
||||
;;
|
||||
|
|
|
@ -5,7 +5,7 @@ Andi Brönnimann <andi-cdist--@--v-net.ch>
|
|||
|
||||
NAME
|
||||
----
|
||||
cdist-type__package_pkg_openbsd - Manage OpenBSD packages
|
||||
cdist-type__package_pkg_openbsd - Manage OpenBSD packages
|
||||
|
||||
|
||||
DESCRIPTION
|
||||
|
|
|
@ -77,7 +77,7 @@ for object in $objects; do
|
|||
debug "current_device=$current_device"
|
||||
debug "available_device_size=$available_device_size"
|
||||
fi
|
||||
|
||||
|
||||
type="$(cat "$object/parameter/type")"
|
||||
partition="$(cat "$object/parameter/partition")"
|
||||
minor="$(cat "$object/parameter/minor")"
|
||||
|
|
|
@ -21,7 +21,7 @@ state::
|
|||
|
||||
OPTIONAL PARAMETERS
|
||||
-------------------
|
||||
All optional parameter map directly to the corresponding postgres createrole
|
||||
All optional parameter map directly to the corresponding postgres createrole
|
||||
parameters.
|
||||
|
||||
password::
|
||||
|
@ -36,7 +36,7 @@ EXAMPLES
|
|||
--------
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
__postgres_role myrole --state present
|
||||
__postgres_role myrole --state present
|
||||
|
||||
__postgres_role myrole --state present --password 'secret'
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ cdist-type__timezone - Allows to configure the desired localtime timezone.
|
|||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
This type creates a symlink (/etc/localtime) to the selected timezone
|
||||
This type creates a symlink (/etc/localtime) to the selected timezone
|
||||
(which should be available in /usr/share/zoneinfo).
|
||||
|
||||
|
||||
|
|
|
@ -24,5 +24,5 @@
|
|||
if [ -f "$__object/parameter/gid" ]; then
|
||||
gid=$(cat "$__object/parameter/gid")
|
||||
getent group "$gid" || true
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ if grep -q "^${name}:" "$__object/explorer/passwd"; then
|
|||
fi
|
||||
;;
|
||||
password)
|
||||
field=3
|
||||
field=3
|
||||
file="$__object/explorer/shadow"
|
||||
;;
|
||||
comment) field=5 ;;
|
||||
|
|
Loading…
Reference in a new issue