summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-03-20 20:12:00 +0100
committervarac <varacanero@zeromail.org>2013-03-20 20:12:00 +0100
commitc4e223c5d6621785a9949a2ff6880a4f6617d200 (patch)
tree3cd6175e4610c6e2d6357619740e1ac37d2ca5d8
parent8699162f49dd465cbd95ec136e8109622284aba1 (diff)
don't check cli argument against service name, set hostname
we will have other hostnames than service names (i.e. couch1 + couch2)
-rwxr-xr-xleap-bootstrap-node.sh17
1 files changed, 2 insertions, 15 deletions
diff --git a/leap-bootstrap-node.sh b/leap-bootstrap-node.sh
index 3943051..b3649d2 100755
--- a/leap-bootstrap-node.sh
+++ b/leap-bootstrap-node.sh
@@ -8,22 +8,9 @@ cd $PROVIDERDIR
vm=$1
-if [ -z $vm ]
-then
- echo "provide service name"
- exit 1
-fi
-
-case $SERVICES in
- *"$vm"*) ;;
-
- *)
- echo "provide service name"
- exit 1 ;;
-esac
-
leap $OPTS local start $vm
leap $OPTS node init $vm
-leap $OPTS deploy $vm --tags site_apt::dist_upgrade
+# set hostname + do dist-upgrade
+leap $OPTS deploy $vm --tags site_apt::dist_upgrade,site_config::hosts
leap $OPTS local save $vm