Skip to content

Commit

Permalink
Pushed the service enable and start to bottom
Browse files Browse the repository at this point in the history
- Moved the service enable and start to the bottom of the default
recipe so you can change variables around.
- This should resolve #201
  • Loading branch information
JJ Asghar committed Jan 16, 2015
1 parent d10fc82 commit a58a1d6
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ class Chef::Resource # rubocop:disable all
rpm_package "#{Chef::Config[:file_cache_path]}/rabbitmq-server-#{node['rabbitmq']['version']}-1.noarch.rpm"
end

service node['rabbitmq']['service_name'] do
action [:enable, :start]
end

when 'suse'
# rabbitmq-server-plugins needs to be first so they both get installed
# from the right repository. Otherwise, zypper will stop and ask for a
Expand All @@ -129,9 +125,6 @@ class Chef::Resource # rubocop:disable all
version node['rabbitmq']['version']
end

service node['rabbitmq']['service_name'] do
action [:enable, :start]
end
when 'smartos'
package 'rabbitmq'do
action :install
Expand All @@ -142,9 +135,6 @@ class Chef::Resource # rubocop:disable all
action :start
end

service node['rabbitmq']['service_name'] do
action [:enable, :start]
end
end

if node['rabbitmq']['logdir']
Expand Down Expand Up @@ -210,3 +200,7 @@ class Chef::Resource # rubocop:disable all
action :nothing
end
end

service node['rabbitmq']['service_name'] do
action [:enable, :start]
end

0 comments on commit a58a1d6

Please sign in to comment.