summaryrefslogtreecommitdiffstats
path: root/roles/openshift_hosted_logging
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-11-15 17:14:41 -0500
committerScott Dodson <sdodson@redhat.com>2016-11-15 17:15:23 -0500
commit731b265e56920b776b38c66a23f7c83f5a6a0187 (patch)
treef8ea6b07c456adcdfa8f8770ca5b5c0ad1322cee /roles/openshift_hosted_logging
parentb6fa0f86de23374e8f060e23b2ded0ddbd3eaa1a (diff)
downloadopenshift-731b265e56920b776b38c66a23f7c83f5a6a0187.tar.gz
openshift-731b265e56920b776b38c66a23f7c83f5a6a0187.tar.bz2
openshift-731b265e56920b776b38c66a23f7c83f5a6a0187.tar.xz
openshift-731b265e56920b776b38c66a23f7c83f5a6a0187.zip
Add rolebinding-reader
Fixes Bug 1390913 Fixes BZ1390913
Diffstat (limited to 'roles/openshift_hosted_logging')
-rw-r--r--roles/openshift_hosted_logging/tasks/deploy_logging.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_hosted_logging/tasks/deploy_logging.yaml b/roles/openshift_hosted_logging/tasks/deploy_logging.yaml
index 0162d1fb0..4feb5abcf 100644
--- a/roles/openshift_hosted_logging/tasks/deploy_logging.yaml
+++ b/roles/openshift_hosted_logging/tasks/deploy_logging.yaml
@@ -71,6 +71,13 @@
register: fluentd2_output
failed_when: "fluentd2_output.rc == 1 and 'exists' not in fluentd2_output.stderr"
+ - name: "Add rolebinding-reader to aggregated-logging-elastic-search"
+ command: >
+ {{ openshift.common.client_binary }} adm policy add-cluster-role-to-user rolebinding-reader \
+ system:serviceaccount:logging:aggregated-logging-elasticsearch
+ register: rolebinding_reader_output
+ failed_when: "rolebinding_reader_output == 1 and 'exists' not in rolebinding_reader_output.stderr"
+
- name: "Create ConfigMap for deployer parameters"
command: >
{{ openshift.common.client_binary}} --config={{ mktemp.stdout }}/admin.kubeconfig create configmap logging-deployer {{ deployer_cmap_params }}