blob: 874b89e521102aeb4762bfb8e0064ab0606dabdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
---
- name: Generating serviceaccounts for hawkular metrics/cassandra
template: src=serviceaccount.j2 dest={{mktemp.stdout}}/templates/metrics-{{obj_name}}-sa.yaml
vars:
obj_name: "{{item.name}}"
labels:
metrics-infra: support
secrets:
- hawkular-{{item.secret}}-secrets
with_items:
- name: hawkular
secret: hawkular-metrics-secrets
- name: cassandra
secret: hawkular-cassandra-secrets
changed_when: no
- name: Set serviceaccounts for hawkular metrics/cassandra
oc_obj:
name: "{{ item }}"
kind: serviceaccount
namespace: "{{ openshift_metrics_project }}"
files:
- "{{ mktemp.stdout }}/templates/metrics-{{ item }}-sa.yaml"
delete_after: true
with_items:
- hawkular
- cassandra
|