Sha256: 6e60b1b572967d76bc02d3eae66dddb4c8a1bf090661c39053c9f8b92938b708

Contents?: true

Size: 1.13 KB

Versions: 44

Compression:

Stored size: 1.13 KB

Contents

#
# Cookbook Name:: splunk
# Recipe:: disabled
#
# Author: Joshua Timberman <joshua@getchef.com>
# Copyright (c) 2014, Chef Software, Inc <legal@getchef.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

unless node['splunk']['disabled']
  Chef::Log.debug('The mu-splunk::disabled recipe was added to the node,')
  Chef::Log.debug('but the attribute to disable splunk was not set.')
  return
end

service 'splunk' do
  ignore_failure true
  action :stop
end

%w(splunk splunkforwarder).each do |pkg|
  package pkg do
    ignore_failure true
    action :remove
  end
end

execute "#{splunk_dir}/bin/splunk disable boot-start" do
  ignore_failure true
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
cloud-mu-3.6.10 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.6.9 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.6.8 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.6.7 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.6.5 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.6.4 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.6.3 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.5.1 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.5.0 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.4.0 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.3.2 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.3.1 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.3.0 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.2.0 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.1.6 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.1.5 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.1.4 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.1.3 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.1.2 cookbooks/mu-splunk/recipes/disabled.rb
cloud-mu-3.1.2beta2 cookbooks/mu-splunk/recipes/disabled.rb