-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion: BREAKING CHANGE: Host and instance parameter is not consistent throughout the module #308
Comments
xSQLAliasServer -> I think we can add SQLServer and SQLInstanceName and concatenate these parameters in resource. |
Removed deprecated resources from the list. |
@luigilink What do you mean by concatenate the parameters in xSQLServerAlias? xSQLServerAlias does not connect to any SQL Server, it only changes the registry on the host it runs on. It do have a ServerName parameter, but it is what the remote server is that is set in the registry. I really think we should make SQLServer (the Host) parameter non-mandatory (see issue #319). I think then we should have $env:COMPUTERNAME as default value for SQLServer (the Host) parameter. |
One thought with the instance parameter name |
If we do a breaking change in issue #851 then it would be good if we also resolved this one? |
It would seem reasonable that if we have that large of a breaking change that this would be a relatively small portion of that change. My vote is for |
Any votes for the name of the parameter for the host name? For the host name parameter, I personally don't think host name parameter name Options (please add more options if there are any):
I'm kind of divided between ServerName, ComputerName and HostName. But I personally think ServerName is best suited. But I go with whatever the majority of the community likes. |
I tend to like HostName because of connecting to Failover Cluster Instances. However, NodeName seems to line up better with the DSC configurations defining nodes. I'm with @johlju on this one, I could go with ServerName, NodeName, or HostName. I'm wondering if the host name parameter is even needed since the node configuration already knows which host the instance is on. The only exception is when connecting to a Failover Cluster Instance, however, this could potentially be dynamically determined. I'm thinking out loud on this one, so be gentle 😜 |
I could go with NodeName. I started using that when I created resource when I started out with DSC because it was a term used by DSC. But I tend to like ServerName because I think that is how you think of it from an SQL perspective, I do like HostName also, because it's a term used with DNS. I think host names is needed when using AG groups, please see this issue #319. |
+1 for ServerName |
@randomnote1 @nabrond + all Everybody okay with |
To all: Maybe I should have asked, is anyone not okay with |
@johlju, I'm good with the proposed change. |
sounds good to me @johlju |
Working on this now. Using PR #902 as base. |
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameter NodeName has been renamed to ServerName (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameter NodeName has been renamed to ServerName (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameter NodeName has been renamed to ServerName (issue dsccommunity#308).
- BREAKING CHANGE: Parameter NodeName has been renamed to ServerName (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer has been renamed to ServerName (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly (issue dsccommunity#308).
- Changes to SqlAG - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlAGDatabase - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlAGListener - BREAKING CHANGE: Parameter NodeName has been renamed to ServerName ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlAGReplica - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlAlwaysOnService - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlDatabase - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes SqlDatabaseDefaultLocation - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlDatabasePermission - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlDatabaseRecoveryModel - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlDatabaseRole - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlServerConfiguration - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlServerEndpoint - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlServerEndpointPermission - BREAKING CHANGE: Parameter NodeName has been renamed to ServerName ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlServerEndpointState - BREAKING CHANGE: Parameter NodeName has been renamed to ServerName ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlServerLogin - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlServerMaxDop - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlServerMemory - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlServerNetwork - BREAKING CHANGE: Parameters SQLServer has been renamed to ServerName ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlServerOwner - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlServerPermission - BREAKING CHANGE: Parameter NodeName has been renamed to ServerName ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlServerRole - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)). - Changes to SqlServerServiceAccount - BREAKING CHANGE: Parameters SQLServer and SQLInstanceName has been renamed to ServerName and InstanceName respectivly ([issue #308](https://github.com/PowerShell/SqlServerDsc/issues/)).
Details of the scenario you try and problem that is occurring:
I'm a big fan of consistency. The host parameter and the instance parameter is not consistent throughout the module.
I suggest we try to come to an agreement to which names we are gonna use and add that to the contribution guidelines so we can be more consistent in the future.
I would also want to discuss what you think about trying to make all of these consistent. Is that unnecessary? (it would be a module size breaking change)
I compiled a list of each module. Some are missing both parameters and some are missing either parameter. For this discussion I assume they do need them. Those resource that do not need either parameter, those are removed from the total sum.
Below is a list for each module (includes changes that will merge eventually). But to summarize.
The unique host parameters (order by most to fewest):
Question 1: The name
SQLServer
is used by most resources. Is that the best name it can have? From the top of my head there is also these that could be suitable; SQLServerName, NodeName, ServerName, ComputerName, HostNameThe unique instance parameters (order by most to fewest):
Question 2: The name
InstanceName
is used by most resources. Is that the best name it can have?Compiled list for all resources
The DSC configuration that is using the resource (as detailed as possible):
n/a
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
n/a
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
Dev
The text was updated successfully, but these errors were encountered: