diff options
author | Rich Megginson <rmeggins@redhat.com> | 2017-04-19 15:16:03 -0600 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2017-04-19 15:16:03 -0600 |
commit | 5bb31fda251fc930cd83842fcf06afb7cc77c1c7 (patch) | |
tree | cceeec7992be8061789c3ad301c31b58899d6936 /roles/openshift_logging/tasks/generate_configmaps.yaml | |
parent | 9ace041daaf1bca509f21499b812f4f3e96fdd80 (diff) | |
download | openshift-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.yaml | 40 |
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 |