Browse Source

Updating openshift_logging role to add kibana public url to loggingPublicURL in master-config

ewolinetz 8 years ago
parent
commit
9ed378a12a
1 changed files with 7 additions and 0 deletions
  1. 7 0
      roles/openshift_logging/tasks/install_logging.yaml

+ 7 - 0
roles/openshift_logging/tasks/install_logging.yaml

@@ -44,6 +44,13 @@
     loop_var: file
   when: not ansible_check_mode
 
+- name: Adding Kibana route information to loggingPublicURL
+  modify_yaml:
+    dest: "{{ openshift.common.config_base }}/master/master-config.yaml"
+    yaml_key: assetConfig.loggingPublicURL
+    yaml_value: "https://{{ openshift_logging_kibana_hostname }}"
+  notify: restart master
+
 - name: Printing out objects to create
   debug: msg={{file.content | b64decode }}
   with_items: "{{ object_defs.results }}"