blob: da0bbb6271183993407ccc56cce782014b136f64 (
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
|
---
# This is the base configuration for installing the other components
- name: Check for logging project already exists
command: >
{{ openshift.common.client_binary }} --config={{ mktemp.stdout }}/admin.kubeconfig get project {{openshift_logging_namespace}} --no-headers
register: logging_project_result
ignore_errors: yes
when: not ansible_check_mode
changed_when: no
- name: "Create logging project"
command: >
{{ openshift.common.admin_binary }} --config={{ mktemp.stdout }}/admin.kubeconfig new-project {{openshift_logging_namespace}}
when: not ansible_check_mode and "not found" in logging_project_result.stderr
- 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
|