diff options
author | Stefanie Forrester <sedgar@redhat.com> | 2015-08-27 12:45:06 -0700 |
---|---|---|
committer | Stefanie Forrester <sedgar@redhat.com> | 2015-09-02 16:20:41 -0700 |
commit | 8e3d2689c442762cdd5df08ca31721c5b17b2ee8 (patch) | |
tree | 4566df220395faa715698437b81dfe6efffa816e /roles/openshift_manage_node | |
parent | 7d480fbab74ddc8f76279f32c1a64148e5844382 (diff) | |
download | openshift-8e3d2689c442762cdd5df08ca31721c5b17b2ee8.tar.gz openshift-8e3d2689c442762cdd5df08ca31721c5b17b2ee8.tar.bz2 openshift-8e3d2689c442762cdd5df08ca31721c5b17b2ee8.tar.xz openshift-8e3d2689c442762cdd5df08ca31721c5b17b2ee8.zip |
added new node fact for schedulability
Diffstat (limited to 'roles/openshift_manage_node')
-rw-r--r-- | roles/openshift_manage_node/tasks/main.yml | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/roles/openshift_manage_node/tasks/main.yml b/roles/openshift_manage_node/tasks/main.yml index 74e702248..7c4f45ce6 100644 --- a/roles/openshift_manage_node/tasks/main.yml +++ b/roles/openshift_manage_node/tasks/main.yml @@ -7,15 +7,11 @@ delay: 5 with_items: openshift_nodes -- name: Handle unscheduleable node +- name: Set node schedulability command: > - {{ openshift.common.admin_binary }} manage-node {{ item }} --schedulable=false - with_items: openshift_unscheduleable_nodes - -- name: Handle scheduleable node - command: > - {{ openshift.common.admin_binary }} manage-node {{ item }} --schedulable=true - with_items: openshift_scheduleable_nodes + {{ openshift.common.admin_binary }} manage-node {{ item.openshift.common.hostname }} --schedulable={{ 'true' if item.openshift.node.schedulable | bool else 'false' }} + with_items: + - "{{ openshift_node_vars }}" - name: Label nodes command: > |