rebuild xos-base image in xos-vm-install role playbook
run, which happens async to juju setup
(whitespace fix)
async testclient install
change single-node-pod.sh to use platform-install repo
reformat and minor fixes to README.md
pull xosproject/cord-app-build inside async xos-vm-install role
whitespace fixes v2
fix path for container build
don't start testclient container before databr has been plumbed
fix context
allow xos-vm-install to run longer as it's rebuilding base
daemonize lxc-start for testcliet, avoiding a hang
Change-Id: Icb5da9b69e942aaa79c8256ca5775219f63643d1
diff --git a/roles/test-client-install/files/test-client-playbook.yml b/roles/test-client-install/files/test-client-playbook.yml
new file mode 100644
index 0000000..ab17491
--- /dev/null
+++ b/roles/test-client-install/files/test-client-playbook.yml
@@ -0,0 +1,26 @@
+---
+- hosts: nova-compute-1
+ remote_user: ubuntu
+
+ tasks:
+ - name: Install software
+ apt:
+ name={{ item }}
+ update_cache=yes
+ cache_valid_time=3600
+ become: yes
+ with_items:
+ - lxc
+
+ # replaces: sudo sed -i 's/lxcbr0/databr/' /etc/lxc/default.conf
+ - name: set lxc bridge interface to be databr
+ become: yes
+ lineinfile:
+ dest: /etc/lxc/default.conf
+ regexp: "^lxc.network.link ="
+ line: "lxc.network.link = databr"
+
+ - name: Create testclient
+ become: yes
+ command: lxc-create -t ubuntu -n testclient
+
diff --git a/roles/test-client-install/tasks/main.yml b/roles/test-client-install/tasks/main.yml
new file mode 100644
index 0000000..d10512d
--- /dev/null
+++ b/roles/test-client-install/tasks/main.yml
@@ -0,0 +1,14 @@
+---
+# test-client-install/tasks/main.yml
+
+- name: Copy over test-client ansible playbook
+ copy:
+ src=test-client-playbook.yml
+ dest={{ ansible_user_dir }}/test-client-playbook.yml
+
+- name: Run the test-client ansible playbook
+ command: ansible-playbook {{ ansible_user_dir }}/test-client-playbook.yml
+ async: 3600
+ poll: 0
+ register: test_client_playbook
+