modified to reflect the current user for virt install and ssh keys 71/7771/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 22 Jan 2016 16:59:32 +0000 (10:59 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 22 Jan 2016 19:53:15 +0000 (19:53 +0000)
Change-Id: If377a7cb2b6f03d491ca648b2da9c308c436421e
(cherry picked from commit 1294a4a4e1b53ce5942a91fe209813f490d20320)

ci/02-maasdeploy.sh
ci/deployment.yaml [changed mode: 0755->0644]

index a00fb00..0755ab5 100755 (executable)
@@ -26,6 +26,10 @@ case "$1" in
         ;;
 esac
 
+#just make sure the ssh keys added into maas for the current user
+sed --i "s@/home/ubuntu@$HOME@g" ./deployment.yaml
+sed --i "s@qemu+ssh://ubuntu@qemu+ssh://$USER@g" ./deployment.yaml
+
 #make sure no password asked during the deployment. 
 
 echo "$USER ALL=(ALL) NOPASSWD:ALL" > 90-joid-init
old mode 100755 (executable)
new mode 100644 (file)
index d0c9e6c..90b284b
@@ -12,7 +12,7 @@ demo-maas:
         pool: default
         disk_size: 20G
         sticky_ip_address:
-            requested_address: 192.168.122.5
+            requested_address: 192.168.122.25
 
     maas:
         # Defines the general setup for the MAAS environment, including the
@@ -36,7 +36,7 @@ demo-maas:
 
         # Package sources. These will be used on the MAAS controller.
         apt_sources:
-          - ppa:maas/stable
+          - ppa:maas/next
           - ppa:juju/stable
 
         # Virsh power settings
@@ -110,11 +110,11 @@ demo-maas:
               broadcast_ip: 192.168.122.255
               router_ip: 192.168.122.1
               static_range:
-                  low: 192.168.122.51
-                  high: 192.168.122.60
+                  low: 192.168.122.101
+                  high: 192.168.122.200
               dynamic_range:
-                  low: 192.168.122.5
-                  high: 192.168.122.50
+                  low: 192.168.122.25
+                  high: 192.168.122.100
 
         # Physical nodes to be added to the MAAS cluster. Nodes will be
         # configured, commissioned and put into the Ready state so