diff options
author | Michael Gugino <mgugino@redhat.com> | 2018-01-08 11:24:24 -0500 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2018-01-08 11:48:01 -0500 |
commit | 08f085dd28a32fffbd15d7f2d511fb12bd0fe947 (patch) | |
tree | bd962dd7320b2f1217f91e6e861b8b8b12228fa1 /playbooks/container-runtime/private/config.yml | |
parent | 5608019c7c70755d4839e6e0eef3ca5ab4f04277 (diff) | |
download | openshift-08f085dd28a32fffbd15d7f2d511fb12bd0fe947.tar.gz openshift-08f085dd28a32fffbd15d7f2d511fb12bd0fe947.tar.bz2 openshift-08f085dd28a32fffbd15d7f2d511fb12bd0fe947.tar.xz openshift-08f085dd28a32fffbd15d7f2d511fb12bd0fe947.zip |
Build containerized host group dynamically
Currently, we are using some inventory variables
to determine what host groups should be considered
containerized.
This is problematic and has several edge cases.
This commit removes the variable l_containerized_host_groups
and builds a dynamic group of hosts named
'oo_hosts_containerized_managed_true' based on the value of
'containerized'
Diffstat (limited to 'playbooks/container-runtime/private/config.yml')
-rw-r--r-- | playbooks/container-runtime/private/config.yml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/playbooks/container-runtime/private/config.yml b/playbooks/container-runtime/private/config.yml index dd13fa4a2..7a49adcf0 100644 --- a/playbooks/container-runtime/private/config.yml +++ b/playbooks/container-runtime/private/config.yml @@ -1,10 +1,7 @@ --- -- hosts: "{{ l_containerized_host_groups }}" - vars: - l_chg_temp: "{{ hostvars[groups['oo_first_master'][0]]['openshift_containerized_host_groups'] | default([]) }}" - l_containerized_host_groups: "{{ (['oo_nodes_to_config'] | union(l_chg_temp)) | join(':') }}" - # role: container_runtime is necessary here to bring role default variables - # into the play scope. +- import_playbook: build_container_groups.yml + +- hosts: oo_nodes_to_config:oo_hosts_containerized_managed_true roles: - role: container_runtime tasks: |