Add the labels on the nodes for the scheduler

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2018-05-10 20:48:48 +02:00
parent 5b62c6b8a1
commit 8243ad3b1e

View file

@ -473,6 +473,23 @@
tags: tags:
- osbs-orchestrator-namespace - 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 - name: setup reactor config secret in orchestrator namespace
hosts: osbs-masters-stg[0] hosts: osbs-masters-stg[0]
roles: roles: