+cdist hint
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
b3d535bc01
commit
5f2668f0fe
1 changed files with 14 additions and 0 deletions
14
blog/cdist-hint-apply-single-object.mdwn
Normal file
14
blog/cdist-hint-apply-single-object.mdwn
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
[[!meta title="Cdist: How to apply a single object"]]
|
||||||
|
|
||||||
|
Sometime it would be nice if you could only apply a single
|
||||||
|
object on a remote host, like this:
|
||||||
|
|
||||||
|
__file /need/this/now --state present --source $(pwd -P)/myfile --mode 0755
|
||||||
|
|
||||||
|
Using the initial manifest option (-i) and stdin makes this easy:
|
||||||
|
|
||||||
|
echo __file /need/this/now --state present --source $(pwd -P)/myfile --mode 0755 | cdist config -v -i - targethost
|
||||||
|
|
||||||
|
For more information about cdist visit the [[cdist homepage|software/cdist]].
|
||||||
|
|
||||||
|
[[!tag cdist config unix]]
|
Loading…
Reference in a new issue