Set up Kilo: can boot VM but metadata not working yet
diff --git a/cloudlab-setup.yml b/cloudlab-setup.yml
index d6a98c5..ccf1179 100644
--- a/cloudlab-setup.yml
+++ b/cloudlab-setup.yml
@@ -16,8 +16,8 @@
- name: Add Ansible repository
apt_repository: repo="ppa:ansible/ansible"
- - name: Install older version of Juju due to bug in 1.22
- apt: name=juju-core
+ - name: Update Ansible cache
+ apt: update_cache=yes
- name: Install packages
apt: name={{ item }} state=latest
@@ -26,6 +26,7 @@
- uvtool
- git
- bzr
+ - juju-core
- name: Get juju-ansible git repo
git: repo=https://github.com/cmars/juju-ansible.git
@@ -58,8 +59,6 @@
sudo: no
script: scripts/create-vms.sh
-# - pause: prompt="Hit return when all VMs have IP addresses"
-
- include: tasks/vm-ips.yml
- name: Add VMs to /etc/hosts
@@ -136,16 +135,17 @@
# - pause: prompt="Hit return when all services have started successfully"
- name: Set MTU for GRE tunneling
- shell: "juju set quantum-gateway instance-mtu=1400"
+ shell: "juju set neutron-gateway instance-mtu=1400"
+# Disable all HTTPS for time being
- name: Use HTTPS for keystone authentication
- shell: 'juju set keystone use-https=yes'
+ shell: 'juju set keystone use-https=no'
- name: Use HTTPS for all service endpoints
- shell: 'juju set keystone https-service-endpoints=True'
+ shell: 'juju set keystone https-service-endpoints=False'
- name: Use SSL for rabbitmq
- shell: 'juju set rabbitmq-server ssl=on'
+ shell: 'juju set rabbitmq-server ssl=off'
- name: Add all Juju relations between services
script: scripts/juju-relations.py
@@ -199,8 +199,8 @@
dest=/usr/local/src/network-setup.sh
mode=0644
- - name: Run network setup script
- shell: ansible nova-cloud-controller -m script -u ubuntu -a "/usr/local/src/network-setup.sh"
+# - name: Run network setup script
+# shell: ansible nova-cloud-controller -m script -u ubuntu -a "/usr/local/src/network-setup.sh"
- name: Get public key
shell: cat {{ ansible_env['PWD'] }}/.ssh/id_rsa.pub
@@ -210,11 +210,15 @@
sudo: yes
vars:
control_net: 192.168.122.0/24
- gateway: 130.127.133.105
+ gateway: "{{ hostvars['ctl.install.xos-pg0.clemson.cloudlab.us']['ansible_default_ipv4']['address'] }}"
tasks:
- name: Install package needed by Juju
apt: name=python-yaml state=present
+ - name: Add key
+ authorized_key: user="{{ ansible_env['SUDO_USER'] }}"
+ key="{{ hostvars['ctl.install.xos-pg0.clemson.cloudlab.us']['sshkey']['stdout'] }}"
+
- name: Add route via /etc/rc.local
template: src=templates/etc/rc.local.cloudlab
dest=/etc/rc.local
@@ -222,9 +226,12 @@
notify:
- run /etc/rc.local
- - name: Add key
- authorized_key: user="{{ ansible_env['SUDO_USER'] }}"
- key="{{ hostvars['ctl.acb-qv8253.xos-pg0.clemson.cloudlab.us']['sshkey']['stdout'] }}"
+ - name: Touch ~/.ssh/config
+ file: path=/var/lib/nova state=directory
+
+ - name: Set up extra space on CloudLab nodes
+ shell: /usr/testbed/bin/mkextrafs /var/lib/nova
+ creates=/var/lib/nova/lost+found
handlers:
- name: run /etc/rc.local