summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging/tasks/generate_configmaps.yaml
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2017-04-19 15:16:03 -0600
committerRich Megginson <rmeggins@redhat.com>2017-04-19 15:16:03 -0600
commit5bb31fda251fc930cd83842fcf06afb7cc77c1c7 (patch)
treecceeec7992be8061789c3ad301c31b58899d6936 /roles/openshift_logging/tasks/generate_configmaps.yaml
parent9ace041daaf1bca509f21499b812f4f3e96fdd80 (diff)
downloadopenshift-5bb31fda251fc930cd83842fcf06afb7cc77c1c7.tar.gz
openshift-5bb31fda251fc930cd83842fcf06afb7cc77c1c7.tar.bz2
openshift-5bb31fda251fc930cd83842fcf06afb7cc77c1c7.tar.xz
openshift-5bb31fda251fc930cd83842fcf06afb7cc77c1c7.zip
mux does not require privileged, only hostmount-anyuid
Diffstat (limited to 'roles/openshift_logging/tasks/generate_configmaps.yaml')
-rw-r--r--roles/openshift_logging/tasks/generate_configmaps.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/roles/openshift_logging/tasks/generate_configmaps.yaml b/roles/openshift_logging/tasks/generate_configmaps.yaml
index 253543f54..44bd0058a 100644
--- a/roles/openshift_logging/tasks/generate_configmaps.yaml
+++ b/roles/openshift_logging/tasks/generate_configmaps.yaml
@@ -134,3 +134,43 @@
when: fluentd_configmap.stdout is defined
changed_when: no
check_mode: no
+
+- block:
+ - copy:
+ src: fluent.conf
+ dest: "{{mktemp.stdout}}/fluent-mux.conf"
+ when: fluentd_mux_config_contents is undefined
+ changed_when: no
+
+ - copy:
+ src: secure-forward.conf
+ dest: "{{mktemp.stdout}}/secure-forward-mux.conf"
+ when: fluentd_mux_securefoward_contents is undefined
+ changed_when: no
+
+ - copy:
+ content: "{{fluentd_mux_config_contents}}"
+ dest: "{{mktemp.stdout}}/fluent-mux.conf"
+ when: fluentd_mux_config_contents is defined
+ changed_when: no
+
+ - copy:
+ content: "{{fluentd_mux_secureforward_contents}}"
+ dest: "{{mktemp.stdout}}/secure-forward-mux.conf"
+ when: fluentd_mux_secureforward_contents is defined
+ changed_when: no
+
+ - command: >
+ {{ openshift.common.client_binary }} --config={{ mktemp.stdout }}/admin.kubeconfig create configmap logging-mux
+ --from-file=fluent.conf={{mktemp.stdout}}/fluent-mux.conf
+ --from-file=secure-forward.conf={{mktemp.stdout}}/secure-forward-mux.conf -o yaml --dry-run
+ register: mux_configmap
+ changed_when: no
+
+ - copy:
+ content: "{{mux_configmap.stdout}}"
+ dest: "{{mktemp.stdout}}/templates/logging-mux-configmap.yaml"
+ when: mux_configmap.stdout is defined
+ changed_when: no
+ check_mode: no
+ when: openshift_logging_use_mux