document new features

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-15 00:05:38 +01:00
parent 5821ceebbc
commit 2d4cbdddab
2 changed files with 12 additions and 0 deletions

View file

@ -25,9 +25,15 @@ destination::
If supplied, use this as the destination on the target. Otherwise the
object_id is used.
group::
Group to chgrp to.
mode::
Unix permissions, suitable for chmod.
owner::
User to chown to.
source::
If supplied, copy this file from the host running cdist to the target.
If not supplied, an empty file or directory will be created.
@ -45,6 +51,11 @@ __file cdist-marker --type file --destination /etc/cdist-configured
# Use __file from another type
__file /etc/issue --source "$__type/files/archlinux" --type file
# Supply some more settings
__file /etc/shadow --source "$__type/files/shadow" --type file \
--owner root --group shadow --mode 0640
--------------------------------------------------------------------------------

View file

@ -3,6 +3,7 @@
* New type __addifnosuchline
* Document type __issue
* Document type __package_pacman
* New parameter for __file: --owner and --group
1.0.3: 2011-03-11
* Update regexp used for sane characters