Skip to content

(MODULES-5031) Modify facts for SQL Server 2016#212

Merged
hunner merged 1 commit intopuppetlabs:masterfrom
glennsarti:modules-4257-add-sql2016-facts
Jun 8, 2017
Merged

(MODULES-5031) Modify facts for SQL Server 2016#212
hunner merged 1 commit intopuppetlabs:masterfrom
glennsarti:modules-4257-add-sql2016-facts

Conversation

@glennsarti
Copy link
Copy Markdown
Contributor

Previously the custom facts for the module only supported SQL Server 2012 and
2014. This commit updates the facts to support usage on SQL Server 2016, and
adds additional feature detection for features that have been added in Server
2016, or missed out on Server 2014.

@glennsarti glennsarti changed the title (MODULES-5031) Modify facts for SQL Server 2016 {WIP}(MODULES-5031) Modify facts for SQL Server 2016 Jun 2, 2017
@glennsarti glennsarti changed the title {WIP}(MODULES-5031) Modify facts for SQL Server 2016 (MODULES-5031) Modify facts for SQL Server 2016 Jun 2, 2017

# also WMI: SqlService WHERE SQLServiceType = 4 # MsDtsServer
'SQL_DTS_Full' => 'IS', # Integration Services
'SQL_DTS_Full' => 'IS', # Integration Services
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tab?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure on the question. I was just aligning hashrockets

Comment thread lib/puppet_x/sqlserver/features.rb Outdated
# ]
# }
def self.get_instance_info(version = SQL_2014, instance_name)
def self.get_instance_info(version = SQL_2016, instance_name)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why leave this as a default if it will have to be changed each time we increment?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just checked the call sites. There's no need for a default. Perhaps just return nil if version is nil

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the code to have no default and just return nil if the version is nil.

Previously the custom facts for the module only supported SQL Server 2012 and
2014.  This commit updates the facts to support usage on SQL Server 2016, and
adds additional feature detection for features that have been added in Server
2016, or missed out on Server 2014.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants