From 5b5e96f417dc3e384cbae959c1d728918e046cfd Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Mon, 7 Apr 2014 09:03:20 +0200 Subject: [PATCH] ha: Update naming scheme for vip resources We prefix with vip- so that it's a bit clearer. --- definitions/pacemaker_vip_primitive.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/definitions/pacemaker_vip_primitive.rb b/definitions/pacemaker_vip_primitive.rb index 044c8e0..5723c5e 100644 --- a/definitions/pacemaker_vip_primitive.rb +++ b/definitions/pacemaker_vip_primitive.rb @@ -8,7 +8,7 @@ define :pacemaker_vip_primitive, :cb_network => nil, :hostname => nil, :domain = end ip_addr = net_db["allocated_by_name"][fqdn]["address"] - primitive_name = "#{params[:hostname]}-vip-#{params[:cb_network]}" + primitive_name = "vip-#{params[:cb_network]}-#{params[:hostname]}" # Allow one retry, to avoid races where two nodes create the primitive at the # same time when it wasn't created yet (only one can obviously succeed)