add docker-compose setup for xos and onos sub-vm's
diff --git a/cord-single-playbook.yml b/cord-single-playbook.yml
index 71c896d..f85ff6b 100644
--- a/cord-single-playbook.yml
+++ b/cord-single-playbook.yml
@@ -3,6 +3,9 @@
- name: Include Configuration
hosts: all
+ vars:
+ - xos_repo_branch: "feature/role-setup"
+
tasks:
- include_vars: vars/cord_defaults.yml
- include_vars: vars/cord.yml
@@ -41,4 +44,7 @@
roles:
- xos-vm-install
- onos-vm-install
+ - docker-compose-pull
+ - simulate-fabric
+
diff --git a/roles/docker-compose-pull/tasks/main.yml b/roles/docker-compose-pull/tasks/main.yml
new file mode 100644
index 0000000..8f97d86
--- /dev/null
+++ b/roles/docker-compose-pull/tasks/main.yml
@@ -0,0 +1,14 @@
+---
+# docker-compose-pull/tasks/main.yml
+
+- name: Pull images from dockerhub with docker-compose
+ command: ansible "{{ item.name }}" -b -u ubuntu -m command \
+ -a "docker pull chdir={{ item.path }}"
+ with_items: "{{ docker_compose_pull_list }}"
+
+
+- name: 'docker-compose up' where specified
+ command: ansible "{{ item.name }}" -b -u ubuntu -m command \
+ -a "docker up -d chdir={{ item.path }}"
+ with_items: "{{ docker_compose_pull_list | selectattr('up') }}"
+
diff --git a/vars/cord_defaults.yml b/vars/cord_defaults.yml
index 28515a9..34857dc 100644
--- a/vars/cord_defaults.yml
+++ b/vars/cord_defaults.yml
@@ -7,6 +7,10 @@
xos_configuration: cord-pod
+docker_compose_pull_list:
+ - { name:'onos-cord-1', path:'~/cord', up:True}
+ - { name:'xos-1', path:'~//xos/xos/configurations/cord-pod', up:False }
+
charm_versions:
ceilometer: "cs:trusty/ceilometer-17"
ceilometer-agent: "cs:trusty/ceilometer-agent-13"
@@ -23,12 +27,11 @@
openstack-dashboard: "cs:trusty/openstack-dashboard-19"
rabbitmq-server: "cs:trusty/rabbitmq-server-42"
-
head_vm_list:
- name: "juju-1"
service: "juju"
aliases:
- - "juju"
+ - "juju"
ipv4_last_octet: 10
cpu: 1
memMB: 2048