diff --git a/.kitchen.ssms.yml b/.kitchen.ssms.yml index e09c6c7..b95dfbd 100644 --- a/.kitchen.ssms.yml +++ b/.kitchen.ssms.yml @@ -39,6 +39,12 @@ platforms: driver_plugin: vagrant driver_config: box: red-gate/windows-2019 + customize: + cpus: 2 + memory: 4096 + vrde: "off" + vram: 64 + graphicscontroller: "vboxsvga" provisioner: puppet_version: "7.34.0" - name: windows-2022 diff --git a/Gemfile b/Gemfile index 86b3164..678150e 100644 --- a/Gemfile +++ b/Gemfile @@ -20,5 +20,5 @@ gem 'rake-performance' gem 'r10k', '~> 3' gem 'ffi', '~> 1.15.0' -gem 'rexml' +gem 'rexml', '< 3.4.2' diff --git a/manifests/ssms/v19.pp b/manifests/ssms/v19.pp index 6641e23..3b4949f 100644 --- a/manifests/ssms/v19.pp +++ b/manifests/ssms/v19.pp @@ -9,7 +9,7 @@ # @param temp_folder # path to temp folder class sqlserver::ssms::v19 ( - String $source = 'https://go.microsoft.com/fwlink/?linkid=2226343&clcid=0x409', + String $source = 'https://download.microsoft.com/download/9/f/8/9f8197f4-0f71-42a3-8717-b2817c77b820/SSMS-Setup-ENU.exe', String $filename = 'SSMS-Setup-ENU.exe', String $program_name = 'Microsoft SQL Server Management Studio - 19.0.2', String $temp_folder = 'C:/Windows/Temp', @@ -20,9 +20,9 @@ # source => $source, # } - -> ::sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": + sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": source => $source, - destination => "${temp_folder}/${filename}" + destination => "${temp_folder}/${filename}", } -> reboot { 'reboot before installing SSMS (if pending)': diff --git a/manifests/ssms/v20.pp b/manifests/ssms/v20.pp index 45c50f8..77a58a8 100644 --- a/manifests/ssms/v20.pp +++ b/manifests/ssms/v20.pp @@ -19,10 +19,10 @@ #archive { "${temp_folder}/${filename}": # source => $source, #} - - ::sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": + + sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": source => $source, - destination => "${temp_folder}/${filename}" + destination => "${temp_folder}/${filename}", } -> reboot { 'reboot before installing SSMS (if pending)': diff --git a/manifests/ssms/v2016.pp b/manifests/ssms/v2016.pp index 79af2a5..a6949e1 100644 --- a/manifests/ssms/v2016.pp +++ b/manifests/ssms/v2016.pp @@ -9,7 +9,7 @@ # @param temp_folder # path to temp folder class sqlserver::ssms::v2016 ( - String $source = 'http://go.microsoft.com/fwlink/?LinkID=828615', + String $source = 'https://download.microsoft.com/download/7/8/0/7808D223-499D-4577-812B-9A2A60048841/SSMS-Setup-ENU.exe', String $filename = 'SSMS-Setup-ENU.exe', String $program_name = 'Microsoft SQL Server Management Studio - 16.4.1', String $temp_folder = 'C:/Windows/Temp' @@ -20,9 +20,9 @@ # source => $source, # } - ::sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": + sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": source => $source, - destination => "${temp_folder}/${filename}" + destination => "${temp_folder}/${filename}", } -> reboot { 'reboot before installing SSMS (if pending)': diff --git a/manifests/ssms/v2017.pp b/manifests/ssms/v2017.pp index bf5da43..42e16c8 100644 --- a/manifests/ssms/v2017.pp +++ b/manifests/ssms/v2017.pp @@ -9,7 +9,7 @@ # @param temp_folder # path to temp folder class sqlserver::ssms::v2017 ( - String $source = 'https://go.microsoft.com/fwlink/?linkid=867670', + String $source = 'https://download.microsoft.com/download/8/8/3/883FD1FA-FE61-4E83-85F9-FA46D4A5B866/SSMS-Setup-ENU.exe', String $filename = 'SSMS-Setup-ENU.exe', String $program_name = 'Microsoft SQL Server Management Studio - 17.5', String $temp_folder = 'C:/Windows/Temp', @@ -19,10 +19,10 @@ # archive { "${temp_folder}/${filename}": # source => $source, # } - - ::sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": + + sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": source => $source, - destination => "${temp_folder}/${filename}" + destination => "${temp_folder}/${filename}", } -> reboot { 'reboot before installing SSMS (if pending)': diff --git a/manifests/ssms/v2018.pp b/manifests/ssms/v2018.pp index 42b4214..3af29fb 100644 --- a/manifests/ssms/v2018.pp +++ b/manifests/ssms/v2018.pp @@ -19,10 +19,10 @@ # archive { "${temp_folder}/${filename}": # source => $source, # } - - ::sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": + + sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": source => $source, - destination => "${temp_folder}/${filename}" + destination => "${temp_folder}/${filename}", } -> reboot { 'reboot before installing SSMS (if pending)': diff --git a/manifests/ssms/v21.pp b/manifests/ssms/v21.pp index 0fafd4a..5172a7e 100644 --- a/manifests/ssms/v21.pp +++ b/manifests/ssms/v21.pp @@ -20,9 +20,9 @@ # source => $source, # } - ::sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": + sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": source => $source, - destination => "${temp_folder}/${filename}" + destination => "${temp_folder}/${filename}", } -> reboot { 'reboot before installing SSMS (if pending)': diff --git a/manifests/ssms/v22.pp b/manifests/ssms/v22.pp index 9a27d55..293fc85 100644 --- a/manifests/ssms/v22.pp +++ b/manifests/ssms/v22.pp @@ -9,7 +9,7 @@ # @param temp_folder # path to temp folder class sqlserver::ssms::v22 ( - String $source = 'https://aka.ms/ssms/22/preview/vs_SSMS.exe', + String $source = 'https://aka.ms/ssms/22/release/vs_SSMS.exe', String $filename = 'vs_SSMS.exe', String $program_name = 'SQL Server Management Studio 22', String $temp_folder = 'C:/Windows/Temp', @@ -20,9 +20,9 @@ # source => $source, # } - ::sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": + sqlserver::common::download_microsoft_file { "${temp_folder}/${filename}": source => $source, - destination => "${temp_folder}/${filename}" + destination => "${temp_folder}/${filename}", } -> reboot { 'reboot before installing SSMS (if pending)': @@ -34,7 +34,7 @@ -> exec { "install ${program_name}": command => "Start-Process '${temp_folder}/${filename}' -wait -argumentlist '--quiet --norestart' -passThru ", provider => powershell, - creates => 'C:/Program Files/Microsoft SQL Server Management Studio 22/Preview/Common7/IDE/SSMS.exe', + creates => 'C:/Program Files/Microsoft SQL Server Management Studio 22/Release/Common7/IDE/SSMS.exe', timeout => 600, # This can take a while to install, this bumps the default timeout from 5m to 10m. } }