cleanup manpages for new types

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-16 08:45:01 +01:00
parent 2b2545ed8c
commit d2c4ffb5f0
3 changed files with 12 additions and 25 deletions

View file

@ -37,18 +37,11 @@ EXAMPLES
-------- --------
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
# Create /etc/cdist-configured as an empty file # A silly example
__file /etc/cdist-configured --type file __directory /tmp/foobar
# Same but with a different object id # Ensure /etc exists correctly
__file cdist-marker --type file --destination /etc/cdist-configured __file /etc --owner root --group root --mode 0755
# 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

@ -20,10 +20,6 @@ None.
OPTIONAL PARAMETERS OPTIONAL PARAMETERS
------------------- -------------------
destination::
If supplied, use this as the destination on the target. Otherwise the
object_id is used.
group:: group::
Group to chgrp to. Group to chgrp to.
@ -43,16 +39,13 @@ EXAMPLES
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
# Create /etc/cdist-configured as an empty file # Create /etc/cdist-configured as an empty file
__file /etc/cdist-configured --type file __file /etc/cdist-configured
# Same but with a different object id
__file cdist-marker --type file --destination /etc/cdist-configured
# Use __file from another type # Use __file from another type
__file /etc/issue --source "$__type/files/archlinux" --type file __file /etc/issue --source "$__type/files/archlinux"
# Supply some more settings # Supply some more settings
__file /etc/shadow --source "$__type/files/shadow" --type file \ __file /etc/shadow --source "$__type/files/shadow" \
--owner root --group shadow --mode 0640 --owner root --group shadow --mode 0640
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View file

@ -27,20 +27,21 @@ OPTIONAL PARAMETERS
------------------- -------------------
None. None.
EXAMPLES EXAMPLES
-------- --------
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
# Create hard link of /etc/shadow # Create hard link of /etc/shadow
__file /root/shadow --source /etc/shadow --type hard __link /root/shadow --source /etc/shadow --type hard
# Relative symbolic link # Relative symbolic link
__file /etc/apache2/sites-enabled/www.test.ch \ __link /etc/apache2/sites-enabled/www.test.ch \
--source ../sites-available/www.test.ch \ --source ../sites-available/www.test.ch \
--type symbolic --type symbolic
# Relative absolute link # Absolute symbolic link
__file /opt/plone --source /home/services/plone --type symbolic __link /opt/plone --source /home/services/plone --type symbolic
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------