Skip to content

Commit 2073b97

Browse files
author
Andrew Painter
committed
Moved the splunk service definition to the top.
Moved the splunk service start to the bottom
1 parent d0fb357 commit 2073b97

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

recipes/server.rb

+9-6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
# See the License for the specific language governing permissions and
1818
# limitations under the License.
1919
#
20+
service "splunk" do
21+
action [ :nothing ]
22+
supports :status => true, :start => true, :stop => true, :restart => true
23+
end
2024

2125
# True for both a Dedicated Search head for Distributed Search and for non-distributed search
2226
dedicated_search_head = true
@@ -173,11 +177,6 @@
173177
end
174178
end
175179

176-
service "splunk" do
177-
action [ :start ]
178-
supports :status => true, :start => true, :stop => true, :restart => true
179-
end
180-
181180
# Enable receiving ports only if we are a standalone installation or a dedicated_indexer
182181
if dedicated_indexer == true || node['splunk']['distributed_search'] == false
183182
execute "Enabling Receiver Port #{node['splunk']['receiver_port']}" do
@@ -327,4 +326,8 @@
327326
end
328327
end
329328
end
330-
end # End of distributed search
329+
end # End of distributed search
330+
331+
service "splunk" do
332+
action :start
333+
end

0 commit comments

Comments
 (0)