Skip to content

Commit

Permalink
Update _service.rb
Browse files Browse the repository at this point in the history
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
  • Loading branch information
brandocorp committed Aug 20, 2014
1 parent e10b7cb commit fd7dcf3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions recipes/_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit fd7dcf3

Please sign in to comment.