fix --ensure vs. --state bug [DOC]

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-01-09 15:41:15 +01:00
parent 228eb600bf
commit 1092103500

View file

@ -44,17 +44,17 @@ EXAMPLES
# Create /etc/cdist-configured as an empty file # Create /etc/cdist-configured as an empty file
__file /etc/cdist-configured __file /etc/cdist-configured
# The same thing # The same thing
__file /etc/cdist-configured --ensure present __file /etc/cdist-configured --state present
# Delete existing file # Delete existing file
__file /etc/cdist-configured --ensure absent __file /etc/cdist-configured --state absent
# Use __file from another type # Use __file from another type
__file /etc/issue --source "$__type/files/archlinux" --ensure present __file /etc/issue --source "$__type/files/archlinux" --state present
# Supply some more settings # Supply some more settings
__file /etc/shadow --source "$__type/files/shadow" \ __file /etc/shadow --source "$__type/files/shadow" \
--owner root --group shadow --mode 0640 \ --owner root --group shadow --mode 0640 \
--ensure present --state present
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -65,5 +65,5 @@ SEE ALSO
COPYING COPYING
------- -------
Copyright \(C) 2011 Nico Schottelius. Free use of this software is Copyright \(C) 2011-2012 Nico Schottelius. Free use of this software is
granted under the terms of the GNU General Public License version 3 (GPLv3). granted under the terms of the GNU General Public License version 3 (GPLv3).