Skip to content
This repository was archived by the owner on Jul 29, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@

# you should override this in your environment with the real cluster
default.zookeeper.smartstack_cluster = [ 'localhost:2181' ]

default.smartstack.service_path = value_for_platform(
'centos' => { 'default' => '/sbin/service' },
'ubuntu' => { 'default' => '/usr/sbin/service' },
'default' => '/usr/sbin/service'
)
2 changes: 1 addition & 1 deletion recipes/synapse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
owner "root"
group "root"
mode 0440
content "#{node.smartstack.user} ALL= NOPASSWD: /usr/sbin/service haproxy reload\n"
content "#{node.smartstack.user} ALL= NOPASSWD: #{node.smartstack.service_path} haproxy reload\n"
end

# get the synapse code
Expand Down