From 05a97682f57a62169eb0760c1d4a2e8599f7873d Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 2 Mar 2018 14:06:53 +0000 Subject: xci: Make few of OpenStack-Ansible components optional Ironic and Horizon are not quite needed for a functional deployment and they are not currently required by functest so we can remove them from the default deployment. Change-Id: I171483f7b774951f84687529e98cb519afa48043 Signed-off-by: Markos Chandras --- xci/installer/osa/files/setup-openstack.yml | 2 ++ xci/installer/osa/playbooks/configure-opnfvhost.yml | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'xci/installer/osa') diff --git a/xci/installer/osa/files/setup-openstack.yml b/xci/installer/osa/files/setup-openstack.yml index c2cb1c79..544a9999 100644 --- a/xci/installer/osa/files/setup-openstack.yml +++ b/xci/installer/osa/files/setup-openstack.yml @@ -20,8 +20,10 @@ - include: os-neutron-install.yml - include: os-heat-install.yml - include: os-horizon-install.yml + when: not core_openstack | default(False) - include: os-swift-install.yml - include: os-ironic-install.yml + when: not core_openstack | default(False) - include: os-tacker-install.yml - include: os-tempest-install.yml when: (tempest_install | default(False)) | bool or (tempest_run | default(False)) | bool diff --git a/xci/installer/osa/playbooks/configure-opnfvhost.yml b/xci/installer/osa/playbooks/configure-opnfvhost.yml index 4d75f115..deeab182 100644 --- a/xci/installer/osa/playbooks/configure-opnfvhost.yml +++ b/xci/installer/osa/playbooks/configure-opnfvhost.yml @@ -59,14 +59,15 @@ failed_when: false - name: copy cinder.yml shell: "/bin/cp -rf {{ remote_xci_path }}/xci/installer/osa/files/cinder.yml {{OPENSTACK_OSA_ETC_PATH}}/env.d" - - name: Configure AIO tempest + - name: Configure OpenStack-Ansible components lineinfile: path: "{{ OPENSTACK_OSA_ETC_PATH }}/user_variables.yml" - line: "{{ item }}: {{ RUN_TEMPEST | bool }}" + line: "{{ item.component }}: {{ item.value }}" state: present with_items: - - "tempest_install" - - "tempest_run" + - { component: "tempest_install", value: "{{ RUN_TEMPEST | bool }}" } + - { component: "tempest_run", value: "{{ RUN_TEMPEST | bool }}" } + - { component: "core_openstack", value: "{{ CORE_OPENSTACK_INSTALL | bool }}" } - block: - name: copy ceph.yml shell: "/bin/cp -rf {{ remote_xci_flavor_files }}/ceph.yml {{OPENSTACK_OSA_ETC_PATH}}/conf.d/" -- cgit 1.2.3-korg