aboutsummaryrefslogtreecommitdiff
path: root/etc/kolla/globals.yml
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2024-01-26 14:27:33 +0000
committerMark Goddard <mark@stackhpc.com>2025-02-05 23:15:53 +0000
commit94b4adae2f0f9ed85e4dc3ffd56ff6c9ef13d6a3 (patch)
treecc5a6e038e7a54aa92f1df025ade7127999c4e5a /etc/kolla/globals.yml
parent7531de2133e05b03c3470ce4e2c372947d9240af (diff)
downloadkolla-ansible-94b4adae2f0f9ed85e4dc3ffd56ff6c9ef13d6a3.tar.gz
kolla-ansible-94b4adae2f0f9ed85e4dc3ffd56ff6c9ef13d6a3.zip
Support reducing scope of delegated fact gathering
When Kolla Ansible is executed with a '--limit' argument, the scope of an operation is limited to the hosts in the limit. For example: kolla-ansible deploy --limit control Due to the nature of configuring clustered software services, there are cases where we need to know information about other hosts. Most often this is related to their hostname or network addresses. To make this work, Kolla Ansible gathers facts for hosts outside of the limit using delegated fact gathering [1]. By default, Kolla Ansible gathers facts for all hosts. Because delegated facts are gathered serially in batches by the active hosts, this can take a long time when there are not many hosts in the limit. This change makes it possible to reduce the set of hosts eligible for delegated fact gathering by setting 'kolla_ansible_delegate_facts_hosts' to a list of hosts. [1] https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_delegation.html#delegating-facts Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/899615 Change-Id: Id0bda00b81b5bc6a9a870e231335c33d9828e95f
Diffstat (limited to 'etc/kolla/globals.yml')
-rw-r--r--etc/kolla/globals.yml12
1 files changed, 9 insertions, 3 deletions
diff --git a/etc/kolla/globals.yml b/etc/kolla/globals.yml
index 2afc0a155..88d9ce750 100644
--- a/etc/kolla/globals.yml
+++ b/etc/kolla/globals.yml
@@ -5,6 +5,9 @@
# commented parameters are shown here, To override the default value uncomment
# the parameter and change its value.
+# Dummy variable to allow Ansible to accept this file.
+workaround_ansible_issue_8743: yes
+
###################
# Ansible options
###################
@@ -21,15 +24,18 @@
# By default, we do not provide a gather subset.
#kolla_ansible_setup_gather_subset: "{{ omit }}"
-# Dummy variable to allow Ansible to accept this file.
-workaround_ansible_issue_8743: yes
-
# This variable may be used to set the maximum failure percentage for all
# plays. More fine-grained control is possible via per-service variables, e.g.
# nova_max_fail_percentage. The default behaviour is to set a max fail
# percentage of 100, which is equivalent to not setting it.
#kolla_max_fail_percentage:
+# This variable determines which hosts require facts when using --limit. Facts
+# will be gathered using delegation for hosts in this list that are not
+# included in the limit.
+# By default, this list includes all hosts.
+#kolla_ansible_delegate_facts_hosts: "{{ groups['all'] }}"
+
###############
# Kolla options
###############