forked from ungleich-public/cdist
add examples for __remote_{copy,exec} scripts
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
d0123acc2a
commit
360a03a349
5 changed files with 85 additions and 0 deletions
10
other/examples/remote/ssh/copy
Executable file
10
other/examples/remote/ssh/copy
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# same as cdist default
|
||||
#
|
||||
# Usage:
|
||||
# __remote_copy="/path/to/this/script" cdist config target_host
|
||||
#
|
||||
|
||||
#echo "$@" | logger -t "cdist-ssh-copy"
|
||||
scp -o User=root -q $@
|
||||
10
other/examples/remote/ssh/exec
Executable file
10
other/examples/remote/ssh/exec
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# same as cdist default
|
||||
#
|
||||
# Usage:
|
||||
# __remote_exec="/path/to/this/script" cdist config target_host
|
||||
#
|
||||
|
||||
#echo "$@" | logger -t "cdist-ssh-exec"
|
||||
ssh -o User=root -q $@
|
||||
Loading…
Add table
Add a link
Reference in a new issue