blob: 877ce31492245804ba19c173824573943d3a98b3 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
---
# This is the base configuration for installing the other components
- name: Set logging project
oc_project:
state: present
name: "{{ openshift_logging_namespace }}"
node_selector: "{{ openshift_logging_nodeselector | default(null) }}"
- name: Labelling logging project
oc_label:
state: present
kind: namespace
name: "{{ openshift_logging_namespace }}"
labels:
- key: "{{ item.key }}"
value: "{{ item.value }}"
with_dict: "{{ openshift_logging_labels | default({}) }}"
when:
- openshift_logging_labels is defined
- openshift_logging_labels is dict
- name: Labelling logging project
oc_label:
state: present
kind: namespace
name: "{{ openshift_logging_namespace }}"
labels:
- key: "{{ openshift_logging_label_key }}"
value: "{{ openshift_logging_label_value }}"
when:
- openshift_logging_label_key is defined
- openshift_logging_label_key != ""
- openshift_logging_label_value is defined
- name: Create logging cert directory
file: path={{openshift.common.config_base}}/logging state=directory mode=0755
changed_when: False
check_mode: no
- include: generate_certs.yaml
vars:
generated_certs_dir: "{{openshift.common.config_base}}/logging"
- name: Create temp directory for all our templates
file: path={{mktemp.stdout}}/templates state=directory mode=0755
changed_when: False
check_mode: no
- include: generate_secrets.yaml
vars:
generated_certs_dir: "{{openshift.common.config_base}}/logging"
- include: generate_configmaps.yaml
- include: generate_services.yaml
- name: Generate kibana-proxy oauth client
template: src=oauth-client.j2 dest={{mktemp.stdout}}/templates/oauth-client.yaml
vars:
secret: "{{oauth_secret}}"
when: oauth_secret is defined
check_mode: no
changed_when: no
- include: generate_clusterroles.yaml
- include: generate_rolebindings.yaml
- include: generate_clusterrolebindings.yaml
- include: generate_serviceaccounts.yaml
- include: generate_routes.yaml
|