From fd7dcf38ca4a6962e71660dac4a6c59d08b8555e Mon Sep 17 00:00:00 2001 From: brandocorp Date: Wed, 20 Aug 2014 12:37:33 -0700 Subject: [PATCH] Update _service.rb moving file resource for default.json to the end of the recipe to fix issues with immediate notification of the service resource before the service has been fully configured --- recipes/_service.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/recipes/_service.rb b/recipes/_service.rb index 4a181a8d..7a510beb 100644 --- a/recipes/_service.rb +++ b/recipes/_service.rb @@ -92,14 +92,6 @@ end end -file node[:consul][:config_dir] + '/default.json' do - user consul_user - group consul_group - mode 0600 - action :create - content JSON.pretty_generate(service_config, quirks_mode: true) -end - case node[:consul][:init_style] when 'init' template '/etc/init.d/consul' do @@ -129,3 +121,11 @@ ) end end + +file node[:consul][:config_dir] + '/default.json' do + user consul_user + group consul_group + mode 0600 + action :create + content JSON.pretty_generate(service_config, quirks_mode: true) +end