Make state parameter optional for all types, fixes #131

remotes/origin/3.0
Daniel Heule 11 years ago
parent 4cca593071
commit 423001b702
  1. 2
      cdist/conf/type/__pf_ruleset/man.text
  2. 1
      cdist/conf/type/__pf_ruleset/parameter/default/state
  3. 1
      cdist/conf/type/__pf_ruleset/parameter/optional
  4. 3
      cdist/conf/type/__postgres_database/gencode-remote
  5. 2
      cdist/conf/type/__postgres_database/man.text
  6. 1
      cdist/conf/type/__postgres_database/parameter/default/state
  7. 3
      cdist/conf/type/__postgres_role/gencode-remote
  8. 1
      cdist/conf/type/__postgres_role/parameter/default/state
  9. 2
      cdist/conf/type/__rvm/man.text
  10. 1
      cdist/conf/type/__rvm/parameter/default/state
  11. 0
      cdist/conf/type/__rvm/parameter/optional
  12. 2
      cdist/conf/type/__rvm_gemset/man.text
  13. 1
      cdist/conf/type/__rvm_gemset/parameter/default/state
  14. 0
      cdist/conf/type/__rvm_gemset/parameter/optional
  15. 1
      cdist/conf/type/__rvm_gemset/parameter/required
  16. 2
      cdist/conf/type/__rvm_ruby/man.text
  17. 1
      cdist/conf/type/__rvm_ruby/parameter/default/state
  18. 1
      cdist/conf/type/__rvm_ruby/parameter/optional
  19. 1
      cdist/conf/type/__rvm_ruby/parameter/required

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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
-------------------

@ -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
------------------

Loading…
Cancel
Save