Browse Source

Ensure glusterfs host groups are correct for registry play

Currently, registry-specific play for glusterfs does not
utilize latest host-group code.

This commit ensures registry play matches config play.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1628902
Michael Gugino 6 năm trước cách đây
mục cha
commit
5ae7692915
1 tập tin đã thay đổi với 8 bổ sung3 xóa
  1. 8 3
      playbooks/openshift-glusterfs/registry.yml

+ 8 - 3
playbooks/openshift-glusterfs/registry.yml

@@ -1,10 +1,15 @@
 ---
 - import_playbook: ../init/main.yml
   vars:
-    l_init_fact_hosts: "oo_masters_to_config:oo_glusterfs_to_config"
+    # We need facts on all nodes since we need to check (on RPM installs) that
+    # glusterfs-fuse is available across the cluster.
+    l_init_fact_hosts: "oo_masters_to_config:oo_nodes_to_config"
+    # We only want sanity and base packages on OpenShift nodes that will be
+    # GlusterFS nodes, as they may be new nodes to the OpenShift cluster.
+    l_glusterfs_nodes: "{{ groups['oo_nodes_to_config'] | intersect(groups['oo_glusterfs_to_config']) }}"
     l_openshift_version_set_hosts: "oo_masters_to_config:!oo_first_master"
-    l_sanity_check_hosts: "{{ groups['oo_masters_to_config'] | union(groups['oo_glusterfs_to_config']) }}"
+    l_sanity_check_hosts: "{{ groups['oo_masters_to_config'] | union(l_glusterfs_nodes) }}"
     l_install_base_packages: True
-    l_base_packages_hosts: "oo_glusterfs_to_config"
+    l_base_packages_hosts: "oo_nodes_to_config:&oo_glusterfs_to_config"
 
 - import_playbook: private/registry.yml