From c9afeb9e86ff5389d68e2fe25b9e6baaf56b72c6 Mon Sep 17 00:00:00 2001 From: ewolinetz Date: Mon, 30 Jan 2017 10:59:45 -0600 Subject: Breaking out master-config changing and updated playbook to apply change to other masters --- playbooks/common/openshift-cluster/openshift_logging.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'playbooks/common') diff --git a/playbooks/common/openshift-cluster/openshift_logging.yml b/playbooks/common/openshift-cluster/openshift_logging.yml index 6347cbc26..3257018a0 100644 --- a/playbooks/common/openshift-cluster/openshift_logging.yml +++ b/playbooks/common/openshift-cluster/openshift_logging.yml @@ -3,3 +3,10 @@ hosts: oo_first_master roles: - openshift_logging + +- name: Update Master configs + hosts: masters:!oo_first_master + tasks: + - include_role: + name: openshift_logging + tasks_from: update_master_config -- cgit v1.2.3 From d5c8f481b6a1a23f95fa2c7c621cbbf2edf64b7a Mon Sep 17 00:00:00 2001 From: ewolinetz Date: Mon, 30 Jan 2017 12:50:57 -0600 Subject: Updating openshift_hosted_logging to update master-configs with publicLoggingURL --- playbooks/common/openshift-cluster/openshift_hosted.yml | 11 +++++++++++ playbooks/common/openshift-cluster/openshift_logging.yml | 1 + 2 files changed, 12 insertions(+) (limited to 'playbooks/common') diff --git a/playbooks/common/openshift-cluster/openshift_hosted.yml b/playbooks/common/openshift-cluster/openshift_hosted.yml index ec5b18389..a5b26c7de 100644 --- a/playbooks/common/openshift-cluster/openshift_hosted.yml +++ b/playbooks/common/openshift-cluster/openshift_hosted.yml @@ -45,3 +45,14 @@ - role: cockpit-ui when: ( openshift.common.version_gte_3_3_or_1_3 | bool ) and ( openshift_hosted_manage_registry | default(true) | bool ) and not (openshift.docker.hosted_registry_insecure | default(false) | bool) + +- name: Update master-config for publicLoggingURL + hosts: masters:!oo_first_master + pre_tasks: + - set_fact: + logging_hostname: "{{ openshift_hosted_logging_hostname | default('kibana.' ~ (openshift_master_default_subdomain | default('router.default.svc.cluster.local', true))) }}" + tasks: + - include_role: + name: openshift_hosted_logging + tasks_from: update_master_config + when: openshift_hosted_logging_deploy | default(false) | boola diff --git a/playbooks/common/openshift-cluster/openshift_logging.yml b/playbooks/common/openshift-cluster/openshift_logging.yml index 3257018a0..580d1e5a7 100644 --- a/playbooks/common/openshift-cluster/openshift_logging.yml +++ b/playbooks/common/openshift-cluster/openshift_logging.yml @@ -10,3 +10,4 @@ - include_role: name: openshift_logging tasks_from: update_master_config + when: openshift_logging_install_logging | default(false) | bool -- cgit v1.2.3