forked from ungleich-public/cdist
31 lines
652 B
Text
31 lines
652 B
Text
|
GlobalExplorer
|
||
|
list_explorers()
|
||
|
list_explorers_names()
|
||
|
|
||
|
base_dir
|
||
|
__init__(name)
|
||
|
out_dir
|
||
|
env
|
||
|
name = id
|
||
|
path
|
||
|
return_code
|
||
|
return_value
|
||
|
|
||
|
--------------------------------------------------------------------------------
|
||
|
Exec:
|
||
|
|
||
|
normal:
|
||
|
|
||
|
scp /from/where $USER@$HOST:REMOTE_BASE/cdist-internal
|
||
|
ssh $USER@$HOST MY_CMD_THAT_NEEDS_TO_RUN_IN_BIN_SH (including ENV)
|
||
|
|
||
|
sudo:
|
||
|
|
||
|
scp $USER@$HOST:REMOTE_BASE/cdist-internal
|
||
|
ssh $USER@$HOST sudo MY_CMD_THAT_NEEDS_TO_RUN_IN_BIN_SH (including ENV)
|
||
|
|
||
|
chroot:
|
||
|
|
||
|
[sudo] cp file /chroot/THE_HOST_BASE/REMOTE_BASE/cdist-internal
|
||
|
[sudo] chroot /chroot MY_CMD_THAT_NEEDS_TO_RUN_IN_BIN_SH (including ENV)
|