Skip to content

Commit

Permalink
Remove including "chef-sugar"
Browse files Browse the repository at this point in the history
  • Loading branch information
legal90 committed Jan 17, 2017
1 parent c639a3e commit de8fb89
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# Copyright 2014-2016, Bloomberg Finance L.P.
#
include_recipe 'chef-sugar::default'

node.default['nssm']['install_location'] = '%WINDIR%'

if node['firewall']['allow_consul']
Expand Down Expand Up @@ -33,7 +31,7 @@
poise_service_user node['consul']['service_user'] do
group node['consul']['service_group']
shell node['consul']['service_shell'] unless node['consul']['service_shell'].nil?
not_if { windows? }
not_if { node.platform_family?('windows') }
not_if { node['consul']['service_user'] == 'root' }
not_if { node['consul']['create_service_user'] == false }
notifies :restart, "consul_service[#{service_name}]", :delayed
Expand All @@ -55,7 +53,7 @@
config_file config.path
program install.consul_program

unless windows?
unless node.platform_family?('windows')
user node['consul']['service_user']
group node['consul']['service_group']
end
Expand Down

0 comments on commit de8fb89

Please sign in to comment.