From 14e2d4a76fea3b582b459919b01d54294436ce9b Mon Sep 17 00:00:00 2001 From: William Dyson Date: Fri, 8 Jul 2022 17:48:33 +0100 Subject: [PATCH] moved hosts config to top-level Signed-off-by: William Dyson --- cluster.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/cluster.yml b/cluster.yml index 4c13029..f16cde5 100644 --- a/cluster.yml +++ b/cluster.yml @@ -353,6 +353,33 @@ - default_cluster - full_cluster +- name: Configure Cloudera Manager hosts config + hosts: localhost + gather_facts: no + roles: + - role: cloudera.cluster.cloudera_manager.hosts_config + tags: + - cm + - default_cluster + - full_cluster + +- name: Restart agents if the parcel directory has been changed + hosts: cloudera_manager, cluster + gather_facts: no + roles: + - role: cloudera.cluster.operations.restart_agents + when: + - definition.hosts.configs is defined + - "'parcels_directory' in definition.hosts.configs" + - role: cloudera.cluster.cloudera_manager.wait_for_heartbeat + when: + - definition.hosts.configs is defined + - "'parcels_directory' in definition.hosts.configs" + tags: + - cm + - default_cluster + - full_cluster + - name: Configure Cloudera Manager auth and accounts hosts: cloudera_manager gather_facts: no