Skip to content

Commit

Permalink
each os version should point to their own repo url
Browse files Browse the repository at this point in the history
  • Loading branch information
evandervecht authored and majormoses committed May 8, 2018
1 parent 7a31c2e commit 1756c52
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
default["sensu"]["apt_repo_url"] = "http://repositories.sensuapp.org/apt"
default["sensu"]["yum_repo_url"] = "http://repositories.sensuapp.org"
default['sensu']['yum_flush_cache'] = nil
default["sensu"]["msi_repo_url"] = "https://repositories.sensuapp.org/msi/2012r2"
default["sensu"]["aix_package_root_url"] = "https://sensu.global.ssl.fastly.net/aix"
default["sensu"]["add_repo"] = true
default['sensu']['apt_key_url'] = 'https://sensu.global.ssl.fastly.net/apt/pubkey.gpg'
Expand Down
10 changes: 10 additions & 0 deletions recipes/_windows.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
kernel = 'x86'
end

if node['platform_version'].to_f == 6.1
node.default['sensu']['msi_repo_url'] = 'https://repositories.sensuapp.org/msi/2008r2'
elsif node['platform_version'].to_f == 6.2
node.default['sensu']['msi_repo_url'] = 'https://repositories.sensuapp.org/msi/2012'
elsif node['platform_version'].to_f == 6.3
node.default['sensu']['msi_repo_url'] = 'https://repositories.sensuapp.org/msi/2012r2'
elsif node['platform_version'].to_f == 10.0
node.default['sensu']['msi_repo_url'] = 'https://repositories.sensuapp.org/msi/2016'
end

user node["sensu"]["user"] do
password Sensu::Helpers.random_password(20, true, true, true, true)
not_if { Sensu::Helpers.windows_user_exists?(node["sensu"]["user"]) }
Expand Down

0 comments on commit 1756c52

Please sign in to comment.