Skip to content

Commit

Permalink
Fixes [#134](#134)
Browse files Browse the repository at this point in the history
Signed-off-by: Dang H. Nguyen <dang.nguyen@disney.com>
  • Loading branch information
haidangwa committed Jan 14, 2020
1 parent d9a3be1 commit 00b6c75
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

This file is used to list changes made in each version of the splunk cookbook.

## 4.0.4 (2020-01-14)
- Fixes [#134](https://github.com/chef-cookbooks/chef-splunk/issues/134)

## 4.0.3 (2020-01-02)
- Changes the chef-vault cookbook dependency to `~> 4.0`. This version of chef-vault skips the gem installation
via the cookbook, because the gem is included out of the box in Chef Infra Client 13.4+.
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email 'cookbooks@chef.io'
license 'Apache-2.0'
description 'Manage Splunk Enterprise or Splunk Universal Forwarder'
version '4.0.3'
version '4.0.4'

supports 'debian', '>= 8.9'
supports 'ubuntu', '>= 16.04'
Expand Down
4 changes: 3 additions & 1 deletion recipes/setup_shclustering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
return if node['splunk']['shclustering']['mode'] == 'deployer'

# bootstrap the shcluster and the node as a captain if shclustering mode is set to 'captain'
shcluster_servers_list = node['splunk']['shclustering']['shcluster_members']
shcluster_servers_list = []

# search for the fqdn of the search head deployer and set that as the deployer_url
# if one is not given in the node attributes
Expand Down Expand Up @@ -103,6 +103,8 @@
).each do |result|
shcluster_servers_list << result['splunk']['shclustering']['mgmt_uri']
end
else
shcluster_servers_list = node['splunk']['shclustering']['shcluster_members']
end

execute 'bootstrap-shcluster' do
Expand Down

0 comments on commit 00b6c75

Please sign in to comment.