From 4327e13a487c4d332039957145a26f3c5d76f4dd Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 18 Jun 2010 16:18:02 +1000 Subject: [PATCH] Put /etc/hosts editing suggestion into cluster_created_hooks. Signed-off-by: Martin Schwenke --- autocluster | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/autocluster b/autocluster index 18e7a06..9d47ca0 100755 --- a/autocluster +++ b/autocluster @@ -409,13 +409,18 @@ create_cluster () for_each_node call_func create_node + run_hooks cluster_created_hooks +} + +cluster_created_hosts_message () +{ echo "Cluster $CLUSTER created" echo "You may want to add this to your /etc/hosts file:" cat $hosts_file - - run_hooks cluster_created_hooks } +register_hook cluster_created_hooks cluster_created_hosts_message + create_one_node () { CLUSTER="$1" -- 2.34.1