Skip to content

Commit

Permalink
GlusterFS: Tweak groups for external config
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrpa committed Sep 10, 2018
1 parent 9052676 commit 1d2f84c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 8 additions & 3 deletions playbooks/openshift-glusterfs/config.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions test/tox-inventory.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ localhost
[oo_nfs_to_config]
localhost

[oo_glusterfs_to_config]
localhost

[glusterfs]
localhost

Expand Down

0 comments on commit 1d2f84c

Please sign in to comment.