From 8243ad3b1ef1e0aadf700edfb28eab0f677424b2 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Thu, 10 May 2018 20:48:48 +0200 Subject: [PATCH] Add the labels on the nodes for the scheduler Signed-off-by: Clement Verna --- playbooks/groups/osbs-cluster.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/playbooks/groups/osbs-cluster.yml b/playbooks/groups/osbs-cluster.yml index e845621970..7e03dbccd8 100644 --- a/playbooks/groups/osbs-cluster.yml +++ b/playbooks/groups/osbs-cluster.yml @@ -473,6 +473,23 @@ tags: - osbs-orchestrator-namespace +- name: Add the worker labels to the nodes + hosts: osbs-masters-stg[0] + tags: + - worker-labels-nodes + tasks: + command: "oc -n {{ osbs_worker_namespace }} nodes {{ item }} worker=true --overwrite" + with_items: groups['osbs-nodes-stg'] + + +- name: Add the orchestrator labels to the nodes + hosts: osbs-masters-stg[0] + tags: + - orchestrator-labels-nodes + tasks: + command: "oc -n {{ osbs_namespace }} nodes {{ item }} orchestrator=true --overwrite" + with_items: groups['osbs-nodes-stg'] + - name: setup reactor config secret in orchestrator namespace hosts: osbs-masters-stg[0] roles: