We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c551eb + 379ca3b commit 12aabe1Copy full SHA for 12aabe1
recipes/default.rb
@@ -33,13 +33,15 @@
33
end
34
35
36
+service_name = node['consul']['service_name']
37
poise_service_user node['consul']['service_user'] do
38
group node['consul']['service_group']
39
+ shell node['consul']['service_shell'] unless node['consul']['service_shell'].nil?
40
not_if { windows? }
41
not_if { node['consul']['service_user'] == 'root' }
42
+ notifies :restart, "consul_service[#{service_name}]", :delayed
43
44
-service_name = node['consul']['service_name']
45
config = consul_config service_name do |r|
46
node['consul']['config'].each_pair { |k, v| r.send(k, v) }
47
notifies :reload, "consul_service[#{service_name}]", :delayed
0 commit comments