made it run, ssh key issues
fix user/root difference, lint
lint, make 'apt-get dist-upgrade' an option, formatting
add more missing things
remove extraneous keystone pw
remove database relation to neutron-gateway which is no longer required
fixed roles so async resumption only happens when those VMs exist
workaround for old Jinja
add missing compute relations and variables
whitespace

Change-Id: I323806ea2594bb70fb95a6d11a489625f59ac0da
diff --git a/roles/xos-vm-install/files/xos-setup-devel-playbook.yml b/roles/xos-vm-install/files/xos-setup-devel-playbook.yml
new file mode 100644
index 0000000..517f77d
--- /dev/null
+++ b/roles/xos-vm-install/files/xos-setup-devel-playbook.yml
@@ -0,0 +1,78 @@
+---
+- hosts: xos-1
+  remote_user: ubuntu
+
+  tasks:
+    - name: Include configuration vars
+      include_vars: xos-setup-vars.yml
+
+    - name: Install prerequisites
+      apt:
+        name={{ item }}
+        update_cache=yes
+        cache_valid_time=3600
+      become: yes
+      with_items:
+       - git
+       - make
+       - curl
+       - python-novaclient
+       - python-neutronclient
+       - python-keystoneclient
+       - python-glanceclient
+
+    - name: Clone XOS repo
+      git:
+        repo={{ xos_repo_url }}
+        dest={{ xos_repo_dest }}
+        version={{ xos_repo_branch }}
+        force=yes
+
+    - name: Clone service-profile repo
+      git:
+        repo={{ service_profile_repo_url }}
+        dest={{ service_profile_repo_dest }}
+        version={{ service_profile_repo_branch }}
+        force=yes
+
+    - name: Copy over SSH keys
+      copy:
+        src=~/.ssh/{{ item }}
+        dest={{ service_profile_repo_dest }}/{{ xos_configuration }}/
+        owner={{ ansible_user_id }} mode=0600
+      with_items:
+       - id_rsa
+       - id_rsa.pub
+
+    - name: copy over node_key
+      copy:
+        src={{ node_private_key }}
+        dest={{ service_profile_repo_dest }}/{{ xos_configuration }}/node_key
+        owner={{ ansible_user_id }} mode=0600
+
+    - name: Download Glance VM images
+      get_url:
+        url={{ item.url }}
+        checksum={{ item.checksum }}
+        dest={{ service_profile_repo_dest }}/{{ xos_configuration }}/images/{{ item.name }}.img
+      with_items: "{{ xos_images }}"
+
+    - name: Pull database image
+      become: yes
+      command: docker pull {{ item }}
+      with_items:
+        - xosproject/xos-postgres
+
+    - name: Pull docker images for XOS
+      when: not xos_container_rebuild
+      become: yes
+      command: docker pull {{ item }}
+      with_items:
+        - xosproject/xos-base
+
+    - name: Rebuild XOS containers
+      when: xos_container_rebuild
+      command: make {{ item }}
+        chdir="{{ xos_repo_dest }}/containers/xos/"
+      with_items:
+       - base