diff --git a/playbooks/openshift-glusterfs/config.yml b/playbooks/openshift-glusterfs/config.yml index a5d840467f6..d2acb7381fc 100644 --- a/playbooks/openshift-glusterfs/config.yml +++ b/playbooks/openshift-glusterfs/config.yml @@ -1,10 +1,15 @@ --- - import_playbook: ../init/main.yml vars: - l_init_fact_hosts: "oo_masters_to_config:oo_nodes_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_nodes_to_configi:&oo_glusterfs_to_config" + l_base_packages_hosts: "oo_nodes_to_config:&oo_glusterfs_to_config" - import_playbook: private/config.yml diff --git a/test/tox-inventory.txt b/test/tox-inventory.txt index bc3a211d4f5..828bdac277e 100644 --- a/test/tox-inventory.txt +++ b/test/tox-inventory.txt @@ -94,6 +94,9 @@ localhost [oo_nfs_to_config] localhost +[oo_glusterfs_to_config] +localhost + [glusterfs] localhost