forked from dsccommunity/SqlServerDsc
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored some of the code, cleaned up the rest and fixed PSSA rules warnings (issue dsccommunity#261).
- Loading branch information
Showing
4 changed files
with
154 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
DSCResources/MSFT_xSQLServerNetwork/MSFT_xSQLServerNetwork.schema.mof
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[ClassVersion("1.0.0.0"), FriendlyName("xSQLServerNetwork")] | ||
class MSFT_xSQLServerNetwork : OMI_BaseResource | ||
{ | ||
[Key, Description("SQL Server instance name of which network protocol should be configured")] String InstanceName; | ||
[Required, Description("Network protocol name that should be configured"), ValueMap{"Tcp"}, Values{"Tcp"}] String ProtocolName; | ||
[Write, Description("The host name of the SQL Server to be configured.")] String SQLServer; | ||
[Write, Description("Is network protocol should be enabled or disabled")] Boolean IsEnabled; | ||
[Write, Description("If dynamic ports are used should be set to 0, otherwise leave empty"), ValueMap{"0",""}, Values{"0",""}] String TcpDynamicPorts; | ||
[Write, Description("Sets static port for TCP/IP")] String TcpPort; | ||
[Write, Description("Controls if affected SQL Service should be restarted automatically")] Boolean RestartService; | ||
[Write, Description("Timeout value for restarting the SQL services. The default value is 120 seconds.")] UInt16 RestartTimeout; | ||
[Key, Description("The name of the SQL instance to be configured.")] String InstanceName; | ||
[Required, Description("The name of network protocol to be configured. Only tcp is currently supported."), ValueMap{"Tcp"}, Values{"Tcp"}] String ProtocolName; | ||
[Write, Description("The host name of the SQL Server to be configured. Default value is $env:COMPUTERNAME.")] String SQLServer; | ||
[Write, Description("Enables or disables the network protocol.")] Boolean IsEnabled; | ||
[Write, Description("Set the value to '0' if dynamic ports should be used. If static port should be used set this to a empty string value."), ValueMap{"0",""}, Values{"0",""}] String TcpDynamicPorts; | ||
[Write, Description("The TCP port that SQL Server should be listening on.")] String TcpPort; | ||
[Write, Description("If set to $true then SQL Server and dependent services will be restarted if a change to the configuration is made. The default value is $false.")] Boolean RestartService; | ||
[Write, Description("Timeout value for restarting the SQL Server services. The default value is 120 seconds.")] UInt16 RestartTimeout; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters