Load CORD ONOS apps from local containers in single-node pod
diff --git a/roles/onos-load-apps/files/config.xml b/roles/onos-load-apps/files/config.xml
new file mode 100644
index 0000000..58aad2a
--- /dev/null
+++ b/roles/onos-load-apps/files/config.xml
@@ -0,0 +1,7 @@
+<app name="org.opencord.config" origin="ON.Lab" version="1.0-SNAPSHOT"
+ category="Configuration" url="http://opencord.org" title="CORD Configuration"
+ featuresRepo="mvn:org.opencord/config/1.0-SNAPSHOT/xml/features"
+ features="cord-config">
+ <description>CORD Configuration</description>
+ <artifact>mvn:org.opencord/config/1.0-SNAPSHOT</artifact>
+</app>
diff --git a/roles/onos-load-apps/files/vtn.xml b/roles/onos-load-apps/files/vtn.xml
new file mode 100644
index 0000000..9b3eae7
--- /dev/null
+++ b/roles/onos-load-apps/files/vtn.xml
@@ -0,0 +1,8 @@
+<app name="org.opencord.vtn" origin="ON.Lab" version="1.0-SNAPSHOT"
+ category="Traffic Steering" url="http://onosproject.org" title="CORD Virtual Tenant Network"
+ featuresRepo="mvn:org.opencord/vtn/1.0-SNAPSHOT/xml/features"
+ features="cord-vtn"
+ apps="org.onosproject.ovsdb-base,org.onosproject.dhcp,org.onosproject.xosclient,org.opencord.config">
+ <description>VTN for CORD</description>
+ <artifact>mvn:org.opencord/vtn/1.0-SNAPSHOT</artifact>
+</app>
diff --git a/roles/onos-load-apps/tasks/main.yml b/roles/onos-load-apps/tasks/main.yml
new file mode 100644
index 0000000..2096bdb
--- /dev/null
+++ b/roles/onos-load-apps/tasks/main.yml
@@ -0,0 +1,13 @@
+---
+# onos-load-apps/tasks/main.yml
+#
+# Install CORD ONOS apps from local containers
+
+- name: Disable loading from Maven repo
+ command: ansible xos-1 -u ubuntu -m lineinfile \
+ -a "dest=~/xos/xos/configurations/{{ xos_configuration }}/make-vtn-external-yaml.sh state=absent regexp='install_dependencies'"
+
+- name: Load the apps using Docker
+ command: ansible xos-1 -u ubuntu -m shell \
+ -a "cd ~/xos/containers/cord-apps; make {{ item }}; docker run xosproject/cord-app-{{ item }}"
+ with_items: cord_apps
diff --git a/roles/onos-load-apps/vars/main.yml b/roles/onos-load-apps/vars/main.yml
new file mode 100644
index 0000000..8bce3aa
--- /dev/null
+++ b/roles/onos-load-apps/vars/main.yml
@@ -0,0 +1,5 @@
+---
+
+cord_apps:
+- config
+- vtn