xci: Make few of OpenStack-Ansible components optional 93/52993/4
authorMarkos Chandras <mchandras@suse.de>
Fri, 2 Mar 2018 14:06:53 +0000 (14:06 +0000)
committerFatih Degirmenci <fdegir@gmail.com>
Fri, 2 Mar 2018 17:11:17 +0000 (17:11 +0000)
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 <mchandras@suse.de>
xci/config/user-vars
xci/installer/osa/files/setup-openstack.yml
xci/installer/osa/playbooks/configure-opnfvhost.yml
xci/var/opnfv.yml

index 4912423..06e91cf 100755 (executable)
@@ -45,5 +45,6 @@ export XCI_INSTALLER=${XCI_INSTALLER:-osa}
 #   XCI_ANSIBLE_VERBOSITY="-vvvv"
 export XCI_ANSIBLE_VERBOSITY=${XCI_ANSIBLE_VERBOSITY:-""}
 export RUN_TEMPEST=${RUN_TEMPEST:-false}
+export CORE_OPENSTACK_INSTALL=${CORE_OPENSTACK_INSTALL:-false}
 # Set this to to true to force XCI to re-create the target OS images
 export CLEAN_DIB_IMAGES=${CLEAN_DIB_IMAGES:-false}
index c2cb1c7..544a999 100644 (file)
 - 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
index 4d75f11..deeab18 100644 (file)
       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/"
index 4120a9d..d3924bf 100644 (file)
@@ -33,6 +33,7 @@ XCI_EXTRA_VARS_PATH: "{{ lookup('env', 'XCI_EXTRA_VARS_PATH') }}"
 XCI_SSL_SUBJECT: "{{ lookup('env', 'XCI_SSL_SUBJECT') }}"
 XCI_CEPH_ENABLED: "{{ lookup('env', 'XCI_CEPH_ENABLED') }}"
 RUN_TEMPEST: "{{ lookup('env', 'RUN_TEMPEST') }}"
+CORE_OPENSTACK_INSTALL: "{{ lookup('env', 'CORE_OPENSTACK_INSTALL') }}"
 DEPLOY_SCENARIO: "{{ lookup('env','DEPLOY_SCENARIO') }}"
 XCI_INSTALLER: "{{ lookup('env','XCI_INSTALLER') }}"
 KUBESPRAY_VERSION: "{{ lookup('env','KUBESPRAY_VERSION') }}"