From bc203df95f76661f433e2d7b5f30c6afe09e9fe8 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 21 Sep 2012 11:12:32 +0200 Subject: [PATCH] update man for 2.1 Signed-off-by: Nico Schottelius --- conf/type/__directory/man.text | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/conf/type/__directory/man.text b/conf/type/__directory/man.text index 3f005b55..1f4def7d 100644 --- a/conf/type/__directory/man.text +++ b/conf/type/__directory/man.text @@ -33,8 +33,8 @@ owner:: User to chown to. -OPTIONAL BOOLEAN PARAMETERS ---------------------------- +BOOLEAN PARAMETERS +------------------ parents:: Whether to create parents as well (mkdir -p behaviour) @@ -42,6 +42,7 @@ recursive:: If supplied the chgrp and chown call will run recursively. This does *not* influence the behaviour of chmod. + EXAMPLES -------- @@ -56,13 +57,18 @@ __directory /tmp/foobar --state absent __directory /etc --owner root --group root --mode 0755 # Create nfs service directory, including parents -__directory /home/services/nfs --parents yes +__directory /home/services/nfs --parents # Change permissions recursively -__directory /home/services --recursive yes --owner root --group root +__directory /home/services --recursive --owner root --group root # Setup a temp directory __directory /local --mode 1777 + +# Take it all +__directory /home/services/kvm --recursive --parents \ + --owner root --group root --mode 0755 --state present + --------------------------------------------------------------------------------