Files for setting up XOS and ONOS VMs on CORD
diff --git a/files/onos/docker-compose.yml b/files/onos/docker-compose.yml
new file mode 100644
index 0000000..9b16c4d
--- /dev/null
+++ b/files/onos/docker-compose.yml
@@ -0,0 +1,10 @@
+onos:
+    image: onosproject/onos
+    expose:
+    - "6653"
+    - "8101"
+    - "8181"
+    - "9876"
+    net: host
+    volumes:
+    - ./id_rsa:/root/node_key:ro
diff --git a/files/tmp/set-up-onos.yml b/files/tmp/set-up-onos.yml
new file mode 100644
index 0000000..ac76476
--- /dev/null
+++ b/files/tmp/set-up-onos.yml
@@ -0,0 +1,25 @@
+---
+- hosts: onos-cord
+  sudo: no
+  vars:
+    homedir: /tmp
+  remote_user: ubuntu
+  tasks:
+  - shell: "which docker > /dev/null || wget -qO- https://get.docker.com/ | sh"
+
+  - shell: usermod -aG docker ubuntu
+    sudo: yes
+
+  - shell: "curl -L https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose; chmod +x /usr/local/bin/docker-compose"
+    sudo: yes
+
+  - file: path={{ ansible_env['PWD'] }}/cord
+      state=directory
+
+  - copy: src={{ homedir }}/{{ item }}
+      dest={{ ansible_env['PWD'] }}/cord
+    with_items:
+      - id_rsa
+      - docker-compose.yml
+
+  # To do: add docker-compose.yml file to cord/ directory
diff --git a/files/tmp/set-up-xos.yml b/files/tmp/set-up-xos.yml
new file mode 100644
index 0000000..a73fe5f
--- /dev/null
+++ b/files/tmp/set-up-xos.yml
@@ -0,0 +1,43 @@
+---
+- hosts: xos
+  sudo: no
+  remote_user: ubuntu
+  vars:
+    homedir: /tmp
+  tasks:
+  - apt: update_cache=yes
+    sudo: yes
+
+  - apt: name={{ item }}
+      state=present
+    sudo: yes
+    with_items:
+    - git
+    - make
+    - python-novaclient
+    - python-neutronclient
+    - python-keystoneclient
+    - python-glanceclient
+
+  - git: repo=https://github.com/open-cloud/xos.git
+      dest={{ ansible_env['PWD'] }}/xos
+
+  - shell: make -f {{ ansible_env['PWD'] }}/xos/xos/configurations/common/Makefile.prereqs
+
+  - copy: src={{ homedir }}/{{ item }}
+      dest={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/
+    with_items:
+    - id_rsa
+    - id_rsa.pub
+
+  - copy: src={{ homedir }}/admin-openrc.sh
+      dest={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod
+
+  - copy: src={{ homedir }}/id_rsa
+      dest={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/node_key
+
+  - file: path={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/images
+      state=directory
+
+  - get_url: url=http://www.vicci.org/opencloud/trusty-server-cloudimg-amd64-disk1.img
+      dest={{ ansible_env['PWD'] }}/xos/xos/configurations/cord-pod/images/trusty-server-multi-nic.img