vmcheck: Add vm_shell_inline

Initially suggested in #1298. Wanted to try this out for an upcoming
patch.

Closes: #1304
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2018-03-14 17:06:39 -04:00 committed by Atomic Bot
parent 3e39fda4aa
commit 2eb424b9ce

View File

@ -49,6 +49,14 @@ EOF
rm -f ${playbook}
}
vm_shell_inline() {
vm_ansible_inline <<EOF
- shell: |
set -xeuo pipefail
$(sed -e 's,^, ,')
EOF
}
# rsync wrapper that sets up authentication
vm_raw_rsync() {
local rsyncopts="ssh -o User=root"