modified to backup and restore deployment.yaml 09/20709/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Thu, 8 Sep 2016 18:39:54 +0000 (13:39 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Thu, 8 Sep 2016 18:40:17 +0000 (13:40 -0500)
Change-Id: Id19a574024172fc9b50b9016361cc465e0088bd7
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/00-maasdeploy.sh
ci/deploy.sh

index 0dfff05..e3490c2 100755 (executable)
@@ -158,6 +158,10 @@ if [ -e ./deployconfig.yaml ]; then
     cp ./labconfig.yaml ~/.juju/
 fi
 
+if [ -e ./deployment.yaml ]; then
+    cp ./deployment.yaml ~/.juju/
+fi
+
 #
 # MAAS Customization
 #
index dbe0ef9..3b5e500 100755 (executable)
@@ -110,6 +110,9 @@ deploy() {
     if [ ! -f ./environments.yaml ] && [ -e ~/.juju/environments.yaml ]; then
         cp ~/.juju/environments.yaml ./environments.yaml
     fi
+    if [ ! -f ./deployment.yaml ] && [ -e ~/.juju/deployment.yaml ]; then
+        cp ~/.juju/deployment.yaml ./deployment.yaml
+    fi
     if [ ! -f ./labconfig.yaml ] && [ -e ~/.juju/labconfig.yaml ]; then
         cp ~/.juju/labconfig.yaml ./labconfig.yaml
     fi