summaryrefslogtreecommitdiffstats
path: root/xci
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2017-03-29 15:44:13 +0200
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-08-11 12:56:12 -0700
commit99f5becbe368895b07dddc109da5333caf3a12f6 (patch)
treea7750a77b314ed401120a7398d2fd431c8603146 /xci
parentb55e346394fea7d23e42d93e19ee6df2242aa9c7 (diff)
xci: Add ansible files for sandbox aio flavor
This patch adds aio opnfv host configuration playbook, inventory, variable files and so on to use until we have time to fix things more properly and some other functionality becomes available in upstream. This approach will result in duplicates but it is something we can perhaps live with. The playbook to configure opnfv host is different from the playbook used for the rest of the flavors as our target host is the opnfv host itself. This is the reason for not having target host configuration playbook. This installation of aio will be driven by upstream scripts/playbooks entirely and we just execute the scripts we have in openstack-ansible repo. Change-Id: Ica814bdac1d324414f3add382a8241de49c93a2e Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'xci')
-rw-r--r--xci/file/aio/configure-opnfvhost.yml22
-rw-r--r--xci/file/aio/flavor-vars.yml3
-rw-r--r--xci/file/aio/inventory2
-rw-r--r--xci/file/aio/openstack_user_config.yml0
4 files changed, 27 insertions, 0 deletions
diff --git a/xci/file/aio/configure-opnfvhost.yml b/xci/file/aio/configure-opnfvhost.yml
new file mode 100644
index 00000000..5c66d40c
--- /dev/null
+++ b/xci/file/aio/configure-opnfvhost.yml
@@ -0,0 +1,22 @@
+---
+- hosts: opnfv
+ remote_user: root
+ vars_files:
+ vars_files:
+ - ../var/opnfv.yml
+ roles:
+ - role: remove-folders
+ - { role: clone-repository, project: "openstack/openstack-ansible", repo: "{{ OPENSTACK_OSA_GIT_URL }}", dest: "{{ OPENSTACK_OSA_PATH }}", version: "{{ OPENSTACK_OSA_VERSION }}" }
+ tasks:
+ - name: bootstrap ansible on opnfv host
+ command: "/bin/bash ./scripts/bootstrap-ansible.sh"
+ args:
+ chdir: "{{OPENSTACK_OSA_PATH}}"
+ - name: bootstrap opnfv host as aio
+ command: "/bin/bash ./scripts/bootstrap-aio.sh"
+ args:
+ chdir: "{{OPENSTACK_OSA_PATH}}"
+ - name: install OpenStack on opnfv host - this command doesn't log anything to console
+ command: "/bin/bash ./scripts/run-playbooks.sh"
+ args:
+ chdir: "{{OPENSTACK_OSA_PATH}}"
diff --git a/xci/file/aio/flavor-vars.yml b/xci/file/aio/flavor-vars.yml
index e69de29b..6ac1e0fe 100644
--- a/xci/file/aio/flavor-vars.yml
+++ b/xci/file/aio/flavor-vars.yml
@@ -0,0 +1,3 @@
+---
+# this file is added intentionally in order to simplify putting files in place
+# in future, it might contain vars specific to this flavor
diff --git a/xci/file/aio/inventory b/xci/file/aio/inventory
index e69de29b..9a3dd9ee 100644
--- a/xci/file/aio/inventory
+++ b/xci/file/aio/inventory
@@ -0,0 +1,2 @@
+[opnfv]
+opnfv ansible_ssh_host=192.168.122.2
diff --git a/xci/file/aio/openstack_user_config.yml b/xci/file/aio/openstack_user_config.yml
deleted file mode 100644
index e69de29b..00000000
--- a/xci/file/aio/openstack_user_config.yml
+++ /dev/null