diff options
author | Pawel Wieczorek <p.wieczorek2@samsung.com> | 2019-10-18 15:43:21 +0200 |
---|---|---|
committer | Pawel Wieczorek <p.wieczorek2@samsung.com> | 2019-10-18 15:44:52 +0200 |
commit | 1db352c4270dca67557f87e0049dc273172ac776 (patch) | |
tree | 55b08f7f2eda9e57d795a441076bbb4b1ee05205 | |
parent | 453e9164e5ca1e4328da68a4643146e65a84d574 (diff) | |
download | slav-1db352c4270dca67557f87e0049dc273172ac776.tar.gz slav-1db352c4270dca67557f87e0049dc273172ac776.tar.bz2 slav-1db352c4270dca67557f87e0049dc273172ac776.zip |
Add isolated environment bootstrap scriptdeployment
This patch is intended to provide a quick way to try out SLAV.
Change-Id: I7d93dbb8adbb5161ad8cd92eef6d81346848c274
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
-rwxr-xr-x | bootstrap_demo.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bootstrap_demo.sh b/bootstrap_demo.sh new file mode 100755 index 0000000..04655a4 --- /dev/null +++ b/bootstrap_demo.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +INVENTORY='inventory.yml' + +create_inv_ifnonex() { + cd ansible/ + if ! [ -e "$INVENTORY" ]; then + ln --symbolic "${INVENTORY}.sample" "$INVENTORY" + fi + cd "$OLDPWD" +} + +run_vagrant_env() { + cd vagrant/ + vagrant up + cd "$OLDPWD" +} + +main() { + create_inv_ifnonex + run_vagrant_env +} + +main |