Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Fix issue with app permissions coming from environment file (#256)
Browse files Browse the repository at this point in the history
* Bump version of chefdk on vagrant tests
  • Loading branch information
gravesb authored May 27, 2022
1 parent f2bce58 commit 4f6a2f9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Vagrant.configure('2') do |config|
end

config.vm.define :chef do |cfg|
cfg.vm.provision :shell, inline: 'rpm -q chefdk || curl -L https://omnitruck.chef.io/install.sh | bash -s -- -P chefdk -v 4.7.73'
cfg.vm.provision :shell, inline: 'rpm -q chefdk || curl -L https://omnitruck.chef.io/install.sh | bash -s -- -P chefdk -v 4.13.3'

if ENV['KNIFE_ONLY']
cfg.vm.provision :shell, inline: 'cd /vagrant/vagrant_repo; mv nodes .nodes.bak', privileged: false
Expand Down
2 changes: 1 addition & 1 deletion libraries/splunk_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def manage_lookups
end

def manage_metaconf
permissions = new_resource.permissions
permissions = new_resource.permissions.dup
permissions.each do |stanza, hash|
hash.each do |key, values|
permissions[stanza][key] = values.map { |right, role| "#{right} : [ #{[*role].join(', ')} ]" }.join(', ') if values.is_a?(Hash)
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
license 'Apache-2.0'
description 'Installs/Configures Splunk Servers and Forwarders'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '2.55.0'
version '2.55.1'

source_url 'https://github.com/cerner/cerner_splunk'
issues_url 'https://github.com/cerner/cerner_splunk/issues'
Expand Down
16 changes: 15 additions & 1 deletion vagrant_repo/environments/splunk_standalone.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@
"default_attributes": {
"splunk": {
"apps": {
"bag": "cerner_splunk/cluster-apps-vagrant:search_head"
"bag": "cerner_splunk/cluster-apps-vagrant:search_head",
"another_awesome_app": {
"files": {
"app.conf": {
"ui": {
"is_visible": "1",
"label": "Another Awesome Splunk App"
}
}
},
"permissions": {
"": { "access": { "read": "*", "write": "*" } },
"viewstates": { "access": { "read": "*", "write": "*" } }
}
}
},
"logs": {
"splunkd": {
Expand Down

0 comments on commit 4f6a2f9

Please sign in to comment.