summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2019-10-18 15:43:21 +0200
committerPawel Wieczorek <p.wieczorek2@samsung.com>2019-10-18 15:44:52 +0200
commit1db352c4270dca67557f87e0049dc273172ac776 (patch)
tree55b08f7f2eda9e57d795a441076bbb4b1ee05205
parent453e9164e5ca1e4328da68a4643146e65a84d574 (diff)
downloadslav-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-xbootstrap_demo.sh24
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