You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(MODULES-3202) Fix install dependencies with custom source
Previously the SQL Server module would try to install .Net Framework 3.5 from a
custom source, however the source was never exposed on the feature or instance
provider and type.
This commit:
- Adds a new parameter to the feature and instance type called
`windows_feature_source` which can be used to set the `/Source` attriute
during a call to DISM. See https://support.microsoft.com/en-us/kb/2734782 for
more information about installing from a custom source
- Modifies the installation logic so that it only calls DISM once if the feature
exists. Previously it was called three times.
- Documents the new parameter to the README
- Adds the missing `source` parameter to the feature type in the README
- Only adds the `/Source` parameter to the DISM call, if it is specified in the
resource
- Modifies the error message to only mentioned the windows_source_location if it
was specified in the resource
- Removed redundant call to Install-WindowsFeature
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,6 +204,10 @@ Installs and configures features such as SSMS and Master Data Service.
204
204
205
205
*`pid`: *Optional.* Supplies a product key to configure which edition of SQL Server to use. Valid options: a string containing a valid product key. Default: undef (if not specified, SQL Server runs in Evaluation mode).
206
206
207
+
*`source`: *Required.* Locates the SQL Server installer. Valid options: a string containing the path to an executable. Puppet must have permission to execute the installer.
208
+
209
+
*`windows_feature_source`: *Optional.* Specifies the location of the Windows Feature source files. This may be needed to install the .Net Framework. See https://support.microsoft.com/en-us/kb/2734782 for more information.
210
+
207
211
Please note that if an option is set in both its own specific parameter and `install_switches`, the specifically named parameter takes precedence. For example, if you set the product key in both `pid` and in `install_switches`, SQL Server honors the `pid` parameter.
208
212
209
213
For more information about installer switches and configuring SQL Server, see the links below:
@@ -259,6 +263,8 @@ Installs and configures a SQL Server instance.
259
263
260
264
*`sql_sysadmin_accounts`: *Required.* Specifies one or more SQL or system accounts to receive sysadmin status. Valid options: an array containing one or more valid usernames.
261
265
266
+
*`windows_feature_source`: *Optional.* Specifies the location of the Windows Feature source files. This may be needed to install the .Net Framework. See https://support.microsoft.com/en-us/kb/2734782 for more information.
267
+
262
268
Please note that if an option is set in both its own specific parameter and `install_switches`, the specifically named parameter takes precedence. For example, if you set the product key in both `pid` and in `install_switches`, SQL Server honors the `pid` parameter.
263
269
264
270
For more information about installer switches and configuring SQL Server, see the links below:
warn("The specified windows_source_location directory for sqlserver of \"#{source_location}\" does not exist")unlessPuppet::FileSystem.directory?(source_location)
45
+
end
45
46
46
-
Write-Host "Installing .Net Framework 3.5, do not close this prompt..."
0 commit comments