Gather additional required facts to min
With minimal facts gathering we will experience failures while trying to evaluate amount of threads for apis or mounts for hardening. So to avoid gathering full hardware subset, we add common-task which will gather only specific subset that can be additionally filtered. Gathering processor or mounts subsent simply does not work with ansible and result in full hardware subset as well. Change-Id: Ia5802b4ec0b18271b8c5fbcc5574b484c5233a01
This commit is contained in:
parent
82e3d013fe
commit
f89d87c4b5
@ -145,3 +145,6 @@ _global_pins_file_path: "{{ openstack_clone_root }}/global-requirement-pins.txt"
|
|||||||
|
|
||||||
venv_build_global_constraints: >-
|
venv_build_global_constraints: >-
|
||||||
{{ lookup('file', _global_pins_file_path).splitlines() | reject('match','^#.*$') | reject('equalto', '') | list }}
|
{{ lookup('file', _global_pins_file_path).splitlines() | reject('match','^#.*$') | reject('equalto', '') | list }}
|
||||||
|
|
||||||
|
deployment_extra_facts_subset: hardware
|
||||||
|
deployment_extra_facts_filter: ansible_processor_*
|
||||||
|
@ -27,6 +27,32 @@
|
|||||||
- "defaults/{{ install_method }}_install.yml"
|
- "defaults/{{ install_method }}_install.yml"
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
|
||||||
|
- name: Gather additional facts for monitor_address_block
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
vars:
|
||||||
|
deployment_extra_facts_filter: "ansible_all_ipv[4,6]_addresses"
|
||||||
|
deployment_extra_facts_subset: "!all,network"
|
||||||
|
when: monitor_address_block is defined
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
|
- name: Gather additional facts for monitor_interface
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
vars:
|
||||||
|
deployment_extra_facts_filter: "{{ 'ansible_' ~ monitor_interface | replace('-','_') }}"
|
||||||
|
deployment_extra_facts_subset: "!all,network"
|
||||||
|
when: monitor_interface is defined
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
|
- name: Gather memory facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
vars:
|
||||||
|
deployment_extra_facts_filter: "ansible_memtotal*"
|
||||||
|
deployment_extra_facts_subset: "!all,hardware"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- import_tasks: common-tasks/ceph-server.yml
|
- import_tasks: common-tasks/ceph-server.yml
|
||||||
|
|
||||||
- name: Create systemd service directory
|
- name: Create systemd service directory
|
||||||
@ -102,6 +128,14 @@
|
|||||||
- "defaults/{{ install_method }}_install.yml"
|
- "defaults/{{ install_method }}_install.yml"
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
|
||||||
|
- name: Gather memory facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
vars:
|
||||||
|
deployment_extra_facts_filter: "ansible_memtotal*"
|
||||||
|
deployment_extra_facts_subset: "!all,hardware"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- import_tasks: common-tasks/ceph-server.yml
|
- import_tasks: common-tasks/ceph-server.yml
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
@ -151,6 +185,14 @@
|
|||||||
user: root
|
user: root
|
||||||
vars_files:
|
vars_files:
|
||||||
- "defaults/{{ install_method }}_install.yml"
|
- "defaults/{{ install_method }}_install.yml"
|
||||||
|
pre_tasks:
|
||||||
|
- name: Gather memory facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
vars:
|
||||||
|
deployment_extra_facts_filter: "ansible_memtotal*"
|
||||||
|
deployment_extra_facts_subset: "!all,hardware"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
roles:
|
roles:
|
||||||
- role: ceph-defaults
|
- role: ceph-defaults
|
||||||
tags:
|
tags:
|
||||||
|
19
playbooks/common-tasks/gather-hardware-facts.yml
Normal file
19
playbooks/common-tasks/gather-hardware-facts.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
# Copyright 2021, City Network International AB
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
- name: Gather additional facts
|
||||||
|
setup:
|
||||||
|
gather_subset: "{{ deployment_extra_facts_subset }}"
|
||||||
|
filter: "{{ deployment_extra_facts_filter }}"
|
@ -31,6 +31,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- adjutant
|
- adjutant
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
# In order to ensure that any container, software or
|
# In order to ensure that any container, software or
|
||||||
# config file changes which causes a container/service
|
# config file changes which causes a container/service
|
||||||
# restart do not cause an unexpected outage, we drain
|
# restart do not cause an unexpected outage, we drain
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- aodh
|
- aodh
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- barbican
|
- barbican
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- blazar
|
- blazar
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -27,6 +27,11 @@
|
|||||||
- "defaults/repo_packages/openstack_services.yml"
|
- "defaults/repo_packages/openstack_services.yml"
|
||||||
- "defaults/{{ install_method }}_install.yml"
|
- "defaults/{{ install_method }}_install.yml"
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -32,6 +32,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- cloudkitty
|
- cloudkitty
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
# In order to ensure that any container, software or
|
# In order to ensure that any container, software or
|
||||||
# config file changes which causes a container/service
|
# config file changes which causes a container/service
|
||||||
# restart do not cause an unexpected outage, we drain
|
# restart do not cause an unexpected outage, we drain
|
||||||
|
@ -33,6 +33,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- designate
|
- designate
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -31,6 +31,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- glance
|
- glance
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
# In order to ensure that any container, software or
|
# In order to ensure that any container, software or
|
||||||
# config file changes which causes a container/service
|
# config file changes which causes a container/service
|
||||||
# restart do not cause an unexpected outage, we drain
|
# restart do not cause an unexpected outage, we drain
|
||||||
|
@ -31,6 +31,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- gnocchi
|
- gnocchi
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
vars:
|
vars:
|
||||||
list_of_bind_mounts: "{{ gnocchi_container_bind_mounts }}"
|
list_of_bind_mounts: "{{ gnocchi_container_bind_mounts }}"
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
- defaults/repo_packages/openstack_services.yml
|
- defaults/repo_packages/openstack_services.yml
|
||||||
- "defaults/{{ install_method }}_install.yml"
|
- "defaults/{{ install_method }}_install.yml"
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- horizon
|
- horizon
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
- include_tasks: common-tasks/unbound-clients.yml
|
- include_tasks: common-tasks/unbound-clients.yml
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- ironic
|
- ironic
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -46,6 +46,10 @@
|
|||||||
tags:
|
tags:
|
||||||
- keystone
|
- keystone
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
# In order to ensure that any container, software or
|
# In order to ensure that any container, software or
|
||||||
# config file changes which causes a container/service
|
# config file changes which causes a container/service
|
||||||
|
@ -33,6 +33,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- magnum
|
- magnum
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -33,6 +33,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- manila
|
- manila
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
# In order to ensure that any container, software or
|
# In order to ensure that any container, software or
|
||||||
# config file changes which causes a container/service
|
# config file changes which causes a container/service
|
||||||
# restart do not cause an unexpected outage, we drain
|
# restart do not cause an unexpected outage, we drain
|
||||||
|
@ -27,6 +27,14 @@
|
|||||||
pacemaker_corosync_group: masakari_monitor
|
pacemaker_corosync_group: masakari_monitor
|
||||||
pacemaker_corosync_ring_interface: "{{ masakari_monitor_corosync_multicast_interface }}"
|
pacemaker_corosync_ring_interface: "{{ masakari_monitor_corosync_multicast_interface }}"
|
||||||
haveged_enabled: false
|
haveged_enabled: false
|
||||||
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
vars:
|
||||||
|
deployment_extra_facts_filter: "{{ 'ansible_' ~ pacemaker_corosync_ring_interface | replace('-','_') }}"
|
||||||
|
deployment_extra_facts_subset: "!all,network"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
roles:
|
roles:
|
||||||
- role: "pacemaker_corosync"
|
- role: "pacemaker_corosync"
|
||||||
tags: pacemaker-corosync
|
tags: pacemaker-corosync
|
||||||
@ -39,6 +47,11 @@
|
|||||||
- "defaults/repo_packages/openstack_services.yml"
|
- "defaults/repo_packages/openstack_services.yml"
|
||||||
- "defaults/{{ install_method }}_install.yml"
|
- "defaults/{{ install_method }}_install.yml"
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
# In order to ensure that any container, software or
|
# In order to ensure that any container, software or
|
||||||
# config file changes which causes a container/service
|
# config file changes which causes a container/service
|
||||||
# restart do not cause an unexpected outage, we drain
|
# restart do not cause an unexpected outage, we drain
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- mistral
|
- mistral
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -29,6 +29,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- murano
|
- murano
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- octavia
|
- octavia
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -29,6 +29,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- panko
|
- panko
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
roles:
|
roles:
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- placement
|
- placement
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -28,6 +28,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- sahara
|
- sahara
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- senlin
|
- senlin
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
# In order to ensure that any container, software or
|
# In order to ensure that any container, software or
|
||||||
# config file changes which causes a container/service
|
# config file changes which causes a container/service
|
||||||
# restart do not cause an unexpected outage, we drain
|
# restart do not cause an unexpected outage, we drain
|
||||||
|
@ -27,6 +27,11 @@
|
|||||||
- "defaults/repo_packages/openstack_services.yml"
|
- "defaults/repo_packages/openstack_services.yml"
|
||||||
- "defaults/{{ install_method }}_install.yml"
|
- "defaults/{{ install_method }}_install.yml"
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
vars:
|
vars:
|
||||||
extra_container_config_no_restart:
|
extra_container_config_no_restart:
|
||||||
|
@ -30,6 +30,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- tacker
|
- tacker
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
roles:
|
roles:
|
||||||
|
@ -33,6 +33,11 @@
|
|||||||
when:
|
when:
|
||||||
- (not (tempest_install | default(false)) | bool)
|
- (not (tempest_install | default(false)) | bool)
|
||||||
|
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: "os_tempest"
|
- role: "os_tempest"
|
||||||
- role: "system_crontab_coordination"
|
- role: "system_crontab_coordination"
|
||||||
|
@ -33,6 +33,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- trove
|
- trove
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||||
when: not is_metal
|
when: not is_metal
|
||||||
|
|
||||||
|
@ -27,6 +27,11 @@
|
|||||||
- "defaults/repo_packages/openstack_services.yml"
|
- "defaults/repo_packages/openstack_services.yml"
|
||||||
- "defaults/{{ install_method }}_install.yml"
|
- "defaults/{{ install_method }}_install.yml"
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
# In order to ensure that any container, software or
|
# In order to ensure that any container, software or
|
||||||
# config file changes which causes a container/service
|
# config file changes which causes a container/service
|
||||||
# restart do not cause an unexpected outage, we drain
|
# restart do not cause an unexpected outage, we drain
|
||||||
|
@ -27,6 +27,14 @@
|
|||||||
hosts: "{{ security_host_group|default('hosts') }}"
|
hosts: "{{ security_host_group|default('hosts') }}"
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
user: root
|
user: root
|
||||||
|
pre_tasks:
|
||||||
|
- name: Gather additional facts
|
||||||
|
include_tasks: "common-tasks/gather-hardware-facts.yml"
|
||||||
|
vars:
|
||||||
|
deployment_extra_facts_filter: ansible_mounts
|
||||||
|
deployment_extra_facts_subset: "!all,hardware"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
roles:
|
roles:
|
||||||
- role: "ansible-hardening"
|
- role: "ansible-hardening"
|
||||||
when: apply_security_hardening | bool
|
when: apply_security_hardening | bool
|
||||||
|
Loading…
Reference in New Issue
Block a user