Merge "Avoid using gather_facts as a variable"

This commit is contained in:
Zuul 2017-10-17 12:24:13 +00:00 committed by Gerrit Code Review
commit 6bff605c62
35 changed files with 39 additions and 39 deletions

View File

@ -16,7 +16,7 @@
- name: Install cinder services
hosts: "{{ cinder_hosts }}"
serial: "{{ cinder_serial }}"
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
environment: "{{ deployment_environment_variables | default({}) }}"
tags:

View File

@ -16,7 +16,7 @@
- name: Install glance services
hosts: "{{ glance_hosts }}"
serial: "{{ glance_serial }}"
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
environment: "{{ deployment_environment_variables | default({}) }}"
tags:

View File

@ -16,7 +16,7 @@
- name: Install neutron services
hosts: "{{ neutron_hosts }}"
serial: "{{ neutron_serial }}"
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
environment: "{{ deployment_environment_variables | default({}) }}"
tags:

View File

@ -16,7 +16,7 @@
- name: Install nova services
hosts: "{{ nova_hosts }}"
serial: "{{ nova_serial }}"
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
environment: "{{ deployment_environment_variables | default({}) }}"
vars_files:

View File

@ -15,7 +15,7 @@
- name: Install etcd server cluster
hosts: etcd_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -15,7 +15,7 @@
- name: Galera container config
hosts: galera_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
serial: 1
max_fail_percentage: 0
user: root
@ -43,7 +43,7 @@
- name: Install galera server
hosts: galera_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
serial: 1
max_fail_percentage: 20
user: root

View File

@ -15,7 +15,7 @@
- name: haproxy base config
hosts: haproxy
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
pre_tasks:
- include: common-tasks/os-lxc-container-setup.yml
@ -42,7 +42,7 @@
- name: Install haproxy
hosts: haproxy
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -15,7 +15,7 @@
- name: Gather lxc container host facts
hosts: "{{ lxc_host_group | default('lxc_hosts')}}"
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
- name: Create container(s)
hosts: "{{ container_group|default('all_containers') }}"

View File

@ -15,7 +15,7 @@
- name: Basic lxc host setup
hosts: "{{ lxc_host_group | default('lxc_hosts')}}"
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -15,7 +15,7 @@
- name: Install memcached
hosts: memcached
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -38,7 +38,7 @@
- name: Basic host setup
hosts: "{{ openstack_host_group|default('hosts') }}"
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -15,7 +15,7 @@
- name: Install the aodh components
hosts: aodh_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -15,7 +15,7 @@
- name: Installation and setup of barbican
hosts: barbican_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -15,7 +15,7 @@
- name: Install the ceilometer components
hosts: ceilometer_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -18,7 +18,7 @@
- name: Install designate server
hosts: designate_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
pre_tasks:
- include: common-tasks/os-lxc-container-setup.yml

View File

@ -15,7 +15,7 @@
- name: Install heat server
hosts: heat_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -15,7 +15,7 @@
- name: Install horizon server
hosts: horizon_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -15,7 +15,7 @@
- name: Installation and setup of Ironic
hosts: ironic_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
pre_tasks:
- include: common-tasks/os-lxc-container-setup.yml

View File

@ -61,7 +61,7 @@
- name: Installation and setup of Keystone
hosts: keystone_all
serial: "{{ keystone_serial | default(['1', '100%']) }}"
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
environment: "{{ deployment_environment_variables | default({}) }}"

View File

@ -15,7 +15,7 @@
- name: Installation and setup of molteniron
hosts: molteniron_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
pre_tasks:
- include: common-tasks/os-lxc-container-setup.yml

View File

@ -15,7 +15,7 @@
- name: Install octavia server
hosts: octavia_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -15,7 +15,7 @@
- name: Installation and setup of Rally
hosts: utility_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
pre_tasks:
- include: common-tasks/unbound-clients.yml

View File

@ -13,7 +13,7 @@
- name: Install sahara server
hosts: sahara_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
pre_tasks:
- include: common-tasks/os-lxc-container-setup.yml

View File

@ -15,7 +15,7 @@
- name: Installation and setup of Swift
hosts: swift_all:swift_remote_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -17,7 +17,7 @@
# The services need to be installed first though.
- name: Synchronisation of swift ring and ssh keys
hosts: swift_all:swift_remote_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
roles:

View File

@ -15,7 +15,7 @@
- name: Install the tacker components
hosts: tacker_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -15,7 +15,7 @@
- name: Installation and setup of Tempest
hosts: utility_all[0]
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
roles:

View File

@ -18,7 +18,7 @@
- name: Install trove server
hosts: trove_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
pre_tasks:
- include: common-tasks/os-lxc-container-setup.yml

View File

@ -16,7 +16,7 @@
- name: Create and configure rabbitmq container
hosts: "{{ rabbitmq_host_group | default('rabbitmq_all') }}"
serial: 1
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 0
user: root
pre_tasks:

View File

@ -44,7 +44,7 @@
- name: Build new repo packages for a given release
hosts: repo_masters
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
any_errors_fatal: true
user: root
serial: 1

View File

@ -15,7 +15,7 @@
- name: Setup repo servers
hosts: repo_all
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -15,7 +15,7 @@
- name: Install rsyslog
hosts: rsyslog
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:

View File

@ -19,7 +19,7 @@
- name: Apply security hardening configurations
hosts: "{{ security_host_group|default('hosts') }}"
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
roles:
- role: "ansible-hardening"

View File

@ -16,7 +16,7 @@
- name: Install unbound DNS resolvers
hosts:
- unbound
gather_facts: "{{ gather_facts | default(True) }}"
gather_facts: "{{ osa_gather_facts | default(True) }}"
user: root
pre_tasks:
- include: common-tasks/os-log-dir-setup.yml

View File

@ -174,7 +174,7 @@ pushd "${OSA_CLONE_DIR}/playbooks"
# Prepare the hosts
export ANSIBLE_LOG_PATH="${ANSIBLE_LOG_DIR}/setup-hosts.log"
openstack-ansible setup-hosts.yml -e gather_facts=False
openstack-ansible setup-hosts.yml -e osa_gather_facts=False
# Log some data about the instance and the rest of the system
log_instance_info
@ -186,14 +186,14 @@ pushd "${OSA_CLONE_DIR}/playbooks"
# Prepare the infrastructure
export ANSIBLE_LOG_PATH="${ANSIBLE_LOG_DIR}/setup-infrastructure.log"
openstack-ansible setup-infrastructure.yml -e gather_facts=False
openstack-ansible setup-infrastructure.yml -e osa_gather_facts=False
# Log some data about the instance and the rest of the system
log_instance_info
# Setup OpenStack
export ANSIBLE_LOG_PATH="${ANSIBLE_LOG_DIR}/setup-openstack.log"
openstack-ansible setup-openstack.yml -e gather_facts=False
openstack-ansible setup-openstack.yml -e osa_gather_facts=False
# Log some data about the instance and the rest of the system
log_instance_info