diff --git a/attributes/default.rb b/attributes/default.rb index e43a978f..df949a39 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -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' diff --git a/recipes/_windows.rb b/recipes/_windows.rb index 7d6eb465..07977bc0 100644 --- a/recipes/_windows.rb +++ b/recipes/_windows.rb @@ -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"]) }