summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-06-29 15:41:28 -0400
committerThomas Wiest <twiest@users.noreply.github.com>2015-06-29 15:41:28 -0400
commita27076bee3e8f93681f5d5e1c4b072084f6847b6 (patch)
tree4ee6293daf334a825e9fcf1caa71ce42189a621d /playbooks
parentaccd98845aac3e271295e3115501b25e6d72b114 (diff)
parentcde074730ed8278673498157008651d192c8236a (diff)
downloadopenshift-a27076bee3e8f93681f5d5e1c4b072084f6847b6.tar.gz
openshift-a27076bee3e8f93681f5d5e1c4b072084f6847b6.tar.bz2
openshift-a27076bee3e8f93681f5d5e1c4b072084f6847b6.tar.xz
openshift-a27076bee3e8f93681f5d5e1c4b072084f6847b6.zip
Merge pull request #309 from brenton/manage_node
delegate_to doesn't appear to be thread safe
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-node/config.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/playbooks/common/openshift-node/config.yml b/playbooks/common/openshift-node/config.yml
index 2d2560db4..0eec1ae61 100644
--- a/playbooks/common/openshift-node/config.yml
+++ b/playbooks/common/openshift-node/config.yml
@@ -135,3 +135,18 @@
roles:
- os_env_extras
- os_env_extras_node
+
+- name: Set scheduleability
+ hosts: oo_first_master
+ vars:
+ openshift_unscheduleable_nodes: "{{ hostvars
+ | oo_select_keys(groups['oo_nodes_to_config'])
+ | oo_collect('openshift_hostname', {'openshift_scheduleable': False}) }}"
+ pre_tasks:
+ - set_fact:
+ openshift_scheduleable_nodes: "{{ hostvars
+ | oo_select_keys(groups['oo_nodes_to_config'])
+ | oo_collect('openshift_hostname')
+ | difference(openshift_unscheduleable_nodes) }}"
+ roles:
+ - openshift_manage_node