Skip to content

Commit 12aabe1

Browse files
authored
Merge pull request #349 from jirkafajfr/master
Allow specification of shell for the consul user
2 parents 2c551eb + 379ca3b commit 12aabe1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

recipes/default.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@
3333
end
3434
end
3535

36+
service_name = node['consul']['service_name']
3637
poise_service_user node['consul']['service_user'] do
3738
group node['consul']['service_group']
39+
shell node['consul']['service_shell'] unless node['consul']['service_shell'].nil?
3840
not_if { windows? }
3941
not_if { node['consul']['service_user'] == 'root' }
42+
notifies :restart, "consul_service[#{service_name}]", :delayed
4043
end
4144

42-
service_name = node['consul']['service_name']
4345
config = consul_config service_name do |r|
4446
node['consul']['config'].each_pair { |k, v| r.send(k, v) }
4547
notifies :reload, "consul_service[#{service_name}]", :delayed

0 commit comments

Comments
 (0)