git.samba.org
/
tridge
/
autocluster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d061541
)
Put /etc/hosts editing suggestion into cluster_created_hooks.
author
Martin Schwenke
<martin@meltin.net>
Fri, 18 Jun 2010 06:18:02 +0000
(16:18 +1000)
committer
Martin Schwenke
<martin@meltin.net>
Fri, 18 Jun 2010 06:18:02 +0000
(16:18 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
autocluster
patch
|
blob
|
history
diff --git
a/autocluster
b/autocluster
index 18e7a0679939f16aed35334a8601c462e10d904a..9d47ca0d1bc12df461cada65f6f5c6fa5bb13e15 100755
(executable)
--- 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"