OSBS: applying the orchestrator and worker labels is now done in the inventory

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2019-11-29 14:47:06 +01:00 committed by Pierre-Yves Chibon
parent 629e99f189
commit 53d1d9190c
2 changed files with 0 additions and 43 deletions

View file

@ -166,18 +166,3 @@
file
state=absent
path="/tmp/.dockercfg"
- name: Add the orchestrator labels to the nodes
hosts: osbs_masters_stg[0]:osbs_masters[0]
tags:
- osbs-labels-nodes
tasks:
- name: Add the orchestrator labels to the nodes
command: "oc -n {{ osbs_namespace }} label nodes {{ item }} orchestrator=true --overwrite"
loop: "{{ groups['osbs_nodes_stg'] }}"
when: env == "staging"
- name: Add the orchestrator labels to the nodes
command: "oc -n {{ osbs_namespace }} label nodes {{ item }} orchestrator=true --overwrite"
loop: "{{ groups['osbs_nodes'] }}"
when: env == "production"

View file

@ -76,31 +76,3 @@
file
state=absent
path="/tmp/.dockercfg"
- name: Add the worker labels to the nodes x86_64
hosts: osbs_masters_stg[0]:osbs_masters[0]
tags:
- osbs-labels-nodes
tasks:
- name: Add the worker label
command: "oc -n {{ osbs_worker_namespace }} label nodes {{ item }} worker=true --overwrite"
loop: "{{ groups['osbs_nodes_stg'] }}"
when: env == "staging"
- name: Add the worker label
command: "oc -n {{ osbs_worker_namespace }} label nodes {{ item }} worker=true --overwrite"
loop: "{{ groups['osbs_nodes'] }}"
when: env == "production"
- name: Add the worker labels to the nodes aarch64
hosts: osbs_aarch64_masters_stg[0]:osbs_aarch64_masters[0]
tags:
- osbs-labels-nodes
tasks:
- name: Add the worker label
command: "oc -n {{ osbs_worker_namespace }} label nodes {{ item }} worker=true --overwrite"
loop: "{{ groups['osbs-aarch64-nodes-stg'] }}"
when: env == "staging"
- name: Add the worker label
command: "oc -n {{ osbs_worker_namespace }} label nodes {{ item }} worker=true --overwrite"
loop: "{{ groups['osbs-aarch64-nodes'] }}"
when: env == "production"