forked from ungleich-public/cdist
fix --ensure vs. --state bug [DOC]
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
228eb600bf
commit
1092103500
1 changed files with 5 additions and 5 deletions
|
@ -44,17 +44,17 @@ EXAMPLES
|
|||
# Create /etc/cdist-configured as an empty file
|
||||
__file /etc/cdist-configured
|
||||
# The same thing
|
||||
__file /etc/cdist-configured --ensure present
|
||||
__file /etc/cdist-configured --state present
|
||||
# Delete existing file
|
||||
__file /etc/cdist-configured --ensure absent
|
||||
__file /etc/cdist-configured --state absent
|
||||
|
||||
# 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
|
||||
__file /etc/shadow --source "$__type/files/shadow" \
|
||||
--owner root --group shadow --mode 0640 \
|
||||
--ensure present
|
||||
--state present
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
@ -65,5 +65,5 @@ SEE ALSO
|
|||
|
||||
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).
|
||||
|
|
Loading…
Reference in a new issue