diff options
Diffstat (limited to '')
-rwxr-xr-x | lib/container/list | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/container/list b/lib/container/list index 45430a4..2be55b5 100755 --- a/lib/container/list +++ b/lib/container/list @@ -162,6 +162,15 @@ EOF shell) echo "${CONTAINER}" ;; + + yaml) + +cat << EOF + - name: ${CONTAINER} + ipv4_address: ${ADDRESS} +EOF + + ;; esac } @@ -257,6 +266,21 @@ cat << EOF EOF ;; + + yaml) + +cat << EOF +--- +container_tools: + version: ${VERSION} + +host: + name: ${HOST} + +container: +EOF + + ;; esac CONTAINERS="$(cd "${MACHINES}" 2>/dev/null && find -maxdepth 1 -type d -and -not -name '.container-tools' -and -not -name 'container-tools' -and -not -name 'lost+found' -and -not -name '.snap' -and -not -name '.snapshot' -printf '%P\n' | sort)" |