Merge branch 'bugfix_state_params' of git://github.com/dheule/cdist

This commit is contained in:
Nico Schottelius 2014-02-12 17:04:30 +01:00
commit 2ceced593b
26 changed files with 20 additions and 14 deletions

View file

@ -16,7 +16,7 @@ This type is used on FreeBSD to manage jails.
REQUIRED PARAMETERS
-------------------
state::
Either "present" or "absent."
Either "present" or "absent", defaults to "present".
jailbase::
The location of the .tgz archive containing the base fs for your jails.

View file

@ -0,0 +1 @@
present

View file

@ -5,3 +5,4 @@ interface
devfs-ruleset
jaildir
jailbase
state

View file

@ -16,7 +16,7 @@ This type is used on *BSD systems to manage the pf firewall's ruleset.
REQUIRED PARAMETERS
-------------------
state::
Either "absent" (no ruleset at all) or "present"
Either "absent" (no ruleset at all) or "present", defaults to "present".
OPTIONAL PARAMETERS

View file

@ -0,0 +1 @@
present

View file

@ -1 +1,2 @@
source
state

View file

@ -19,8 +19,7 @@
#
name="$__object_id"
state_should="present"
[ -f "$__object/parameter/state" ] && state_should="$(cat "$__object/parameter/state")"
state_should="$(cat "$__object/parameter/state")"
state_is="$(cat "$__object/explorer/state")"
if [ "$state_should" != "$state_is" ]; then

View file

@ -16,7 +16,7 @@ This cdist type allows you to create or drop postgres databases.
OPTIONAL PARAMETERS
-------------------
state::
either 'present' or 'absent'
either 'present' or 'absent', defaults to 'present'.
owner::
the role owning this database

View file

@ -0,0 +1 @@
present

View file

@ -20,8 +20,7 @@
name="$__object_id"
state_is="$(cat "$__object/explorer/state")"
state_should="present"
[ -f "$__object/parameter/state" ] && state_should="$(cat "$__object/parameter/state")"
state_should="$(cat "$__object/parameter/state")"
[ "$state_is" = "$state_should" ] && exit 0

View file

@ -0,0 +1 @@
present

View file

@ -16,7 +16,7 @@ RVM is the Ruby enVironment Manager for the Ruby programming language.
REQUIRED PARAMETERS
-------------------
state::
Either "present" or "absent".
Either "present" or "absent", defaults to "present".
EXAMPLES

View file

@ -0,0 +1 @@
present

View file

@ -20,7 +20,7 @@ user::
gemset::
The gemset to use
state::
Either "present" or "absent"
Either "present" or "absent", defaults to "present".
OPTIONAL PARAMETERS
-------------------

View file

@ -0,0 +1 @@
present

View file

@ -1 +1,2 @@
default
state

View file

@ -1,3 +1,2 @@
state
gemset
user

View file

@ -18,7 +18,7 @@ REQUIRED PARAMETERS
user::
The remote user account to use
state::
Either "present" or "absent".
Either "present" or "absent", defaults to "present".
BOOLEAN PARAMETERS
-------------------

View file

@ -0,0 +1 @@
present

View file

@ -1,2 +1 @@
state
user

View file

@ -18,7 +18,7 @@ REQUIRED PARAMETERS
user::
The remote user account to use
state::
Either "present" or "absent".
Either "present" or "absent", defaults to "present".
BOOLEAN PARAMETERS
------------------

View file

@ -0,0 +1 @@
present

View file

@ -1,2 +1 @@
state
user