Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .kitchen.ssms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ gem 'rake-performance'
gem 'r10k', '~> 3'

gem 'ffi', '~> 1.15.0'
gem 'rexml'
gem 'rexml', '< 3.4.2'

6 changes: 3 additions & 3 deletions manifests/ssms/v19.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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)':
Expand Down
6 changes: 3 additions & 3 deletions manifests/ssms/v20.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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)':
Expand Down
6 changes: 3 additions & 3 deletions manifests/ssms/v2016.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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)':
Expand Down
8 changes: 4 additions & 4 deletions manifests/ssms/v2017.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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)':
Expand Down
6 changes: 3 additions & 3 deletions manifests/ssms/v2018.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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)':
Expand Down
4 changes: 2 additions & 2 deletions manifests/ssms/v21.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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)':
Expand Down
8 changes: 4 additions & 4 deletions manifests/ssms/v22.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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)':
Expand All @@ -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.
}
}