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
- Small release with several bug fixes and minor feature
5
+
- Small release with several bug fixes and a minor feature.
5
6
6
7
#### Features
7
-
- Added `windows_feature_source` to `sqlserver_instance` and `sqlserver_features` resources. This 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. ([MODULES-3202](https://tickets.puppet.com/browse/MODULES-3202))
8
+
9
+
- Add `windows_feature_source` parameter to the `sqlserver_instance` and `sqlserver_features` resources. This specifies the location of the Windows Feature source files, which might be needed to install the .NET Framework. See https://support.microsoft.com/en-us/kb/2734782 for more information ([MODULES-3202](https://tickets.puppet.com/browse/MODULES-3202)).
8
10
9
11
#### Bug Fixes
10
-
- Fix adding multiple SYSADMIN role accounts on instance creation ([MODULES-3427](https://tickets.puppet.com/browse/MODULES-3427))
11
-
- Fix creation and deletion of Windows base logins ([MODULES-3256](https://tickets.puppet.com/browse/MODULES-3256))
- Refactor acceptance tests for `sqlserver::login` resource ([MODULES-3256](https://tickets.puppet.com/browse/MODULES-3256))
15
-
- Fix modifying server roles for an existing login ([MODULES-3083](https://tickets.puppet.com/browse/MODULES-3083))
16
-
- Fix modifying server roles for an existing Windows user login ([MODULES-3752](https://tickets.puppet.com/browse/MODULES-3752))
12
+
13
+
- Fix issues when adding multiple SYSADMIN role accounts on instance creation ([MODULES-3427](https://tickets.puppet.com/browse/MODULES-3427)).
14
+
- Fix issues when creating and deleting Windows base logins ([MODULES-3256](https://tickets.puppet.com/browse/MODULES-3256)).
15
+
- Fix errors when deleting MS SQL Server logins ([MODULES-2323](https://tickets.puppet.com/browse/MODULES-2323)) and databases ([MODULES-2554](https://tickets.puppet.com/browse/MODULES-2554)).
16
+
- Refactor acceptance tests for `sqlserver::login` resource ([MODULES-3256](https://tickets.puppet.com/browse/MODULES-3256)).
17
+
- Fix issues when modifying server roles for an existing login ([MODULES-3083](https://tickets.puppet.com/browse/MODULES-3083)).
18
+
- Fix issues when modifying an existing Windows user login ([MODULES-3752](https://tickets.puppet.com/browse/MODULES-3752)).
17
19
18
20
## 2016-07-12 - Supported Release 1.1.3
21
+
19
22
### Summary
20
23
21
-
- Small release with several bug fixes and minor features
22
-
-Updated the supported Puppet version ranges
24
+
- Small release with several bug fixes and minor features.
25
+
-Update the supported Puppet version ranges.
23
26
24
27
#### Features
25
-
- Updated documentation with more advanced SQL example
26
-
- Add Windows Based Authentication for `sqlserver::config`. Modifies the `sqlserver::config` class with an additional property called `login_type` which can be either `SQL_LOGIN` or `WINDOWS_LOGIN`, with a default of `SQL_LOGIN`
28
+
29
+
- Update documentation with a more advanced SQL example.
30
+
- Add Windows Based Authentication for `sqlserver::config`. Modifies the `sqlserver::config` class with an additional property called `login_type` which can be either `SQL_LOGIN` or `WINDOWS_LOGIN`, with a default of `SQL_LOGIN`.
27
31
28
32
#### Bug Fixes
29
-
- Fix Role Name Collisions. This fix introduces the database name into the title created for the `sqlserver_tsql` statements so that it is unique
30
-
- Minor refactoring of code which is not used or make code path more obvious
31
-
- Fix TSQL error propagation. Introduce a minor refactor so that the `returns` property captures errors properly from TSQL executions
32
-
- Emit debug output on failed `onlyif` TSQL. Previously, there was no way of getting the log output from SQL Server when executing TSQL during an `onlyif`
33
+
34
+
- Fix Role Name Collisions. This fix introduces the database name into the title created for the `sqlserver_tsql` statements so that it is unique.
35
+
- Minor refactoring of code which is not used or makes code path more obvious.
36
+
- Fix TSQL error propagation. Introduce a minor refactor so that the `returns` property captures errors properly from TSQL executions.
37
+
- Emit debug output on failed `onlyif` TSQL. Previously, there was no way of getting the log output from SQL Server when executing TSQL during an `onlyif`.
33
38
34
39
## 2016-04-11 - Supported Release 1.1.2
35
-
### Summary
36
40
37
-
Small release to support Puppet version ranges.
41
+
### Summary
38
42
43
+
Small release to update supported Puppet version ranges.
39
44
40
45
## 2015-12-08 - Supported Release 1.1.1
46
+
41
47
### Summary
42
48
43
-
Small release for support of newer PE versions.
49
+
Small release to support newer PE versions.
44
50
45
51
## 2015-09-08 - Supported Release 1.1.0
52
+
46
53
### Summary
47
54
48
-
User, Roles and Login as well as they permissions associated with each are now available.
55
+
User, Roles, and Login, as well as the permissions associated with each, are now available.
49
56
50
57
#### Features
51
-
-`sqlserver_instance` and `sqlserver_features` have new parameter `install_switches` which takes a hash of install switches and writes them to a temp configuration file for the the install process
52
-
- Add define for permissions for Users, Roles and Logins
53
-
-`sqlserver::config` no longer writes a file to the sytem
54
-
- New `sqlserver_tsql` provider available to execute custom scripts
55
-
- Remove dependency on 'sqlcmd.exe'
56
-
- Performance discovery improvements
57
-
- Remove dependency for ACL modules
58
+
59
+
-`sqlserver_instance` and `sqlserver_features` have new parameter `install_switches`, which takes a hash of install switches and writes them to a temporary configuration file for the install process.
60
+
- Add define for permissions for Users, Roles, and Logins.
61
+
-`sqlserver::config` no longer writes a file to the sytem.
62
+
- New `sqlserver_tsql` provider available to execute custom scripts.
63
+
- Remove dependency on 'sqlcmd.exe'.
64
+
- Performance discovery improvements.
65
+
- Remove dependency for ACL modules.
58
66
59
67
#### Bug Fixes
60
-
- Munge values for instance names to always be uppercase when comparing
61
-
- Change the way we look up logins to use sys.server_principals instead of function that might not report correctly
62
-
- Fix issue with collation_name and databases where the variable was not named properly causing it to never be set
68
+
69
+
- Munge values for instance names to always be uppercase when comparing.
70
+
- Change the way we look up logins to use sys.server_principals instead of a function that might not report correctly.
71
+
- Fix issue with `collation_name` and databases where the variable was not named properly, causing it to never be set.
Copy file name to clipboardExpand all lines: README.md
+67-67
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# sqlserver
2
2
3
-
####Table of Contents
3
+
####Table of contents
4
4
5
5
1.[Overview](#overview)
6
6
2.[Module Description - What the module does and why it is useful](#module-description)
@@ -18,34 +18,34 @@
18
18
6.[Limitations - OS compatibility, etc.](#limitations)
19
19
7.[Development - Guide for contributing to the module](#development)
20
20
21
-
##Overview
21
+
##Overview
22
22
23
23
The sqlserver module installs and manages Microsoft SQL Server 2012 and 2014 on Windows systems.
24
24
25
-
##Module Description
25
+
##Module description
26
26
27
27
Microsoft SQL Server is a database platform for Windows. The sqlserver module lets you use Puppet to install multiple instances of SQL Server, add SQL features and client tools, execute TSQL statements, and manage databases, users, roles, and server configuration options.
28
28
29
-
##Setup
29
+
##Setup
30
30
31
-
###Setup Requirements
31
+
###Setup requirements
32
32
33
33
The sqlserver module requires the following:
34
34
35
35
* Puppet Enterprise 3.7 or later.
36
-
* .NET 3.5 (installed automatically if not present. This might require an internet connection).
36
+
* .NET 3.5. (Installed automatically if not present. This might require an internet connection.)
37
37
* The contents of the SQL Server ISO file, mounted or extracted either locally or on a network share.
38
-
* Windows Server 2012 or 2012R2.
38
+
* Windows Server 2012 or 2012 R2.
39
39
40
-
###Beginning with sqlserver
40
+
###Beginning with sqlserver
41
41
42
42
To get started with the sqlserver module, include these settings in your manifest:
43
43
44
44
~~~puppet
45
-
sqlserver_instance{'MSSQLSERVER':
46
-
features => ['SQL'],
47
-
source => 'E:/',
48
-
sql_sysadmin_accounts => ['myuser'],
45
+
sqlserver_instance{'MSSQLSERVER':
46
+
features => ['SQL'],
47
+
source => 'E:/',
48
+
sql_sysadmin_accounts => ['myuser'],
49
49
}
50
50
~~~
51
51
@@ -54,7 +54,7 @@ This example installs MS SQL and creates an MS SQL instance named MSSQLSERVER. I
54
54
A more advanced configuration, including installer switches:
This example creates the same MS SQL instance as shown above with additional options: security mode (requiring password to be set) and other optional install switches. This is specified using a hash syntax.
76
76
77
-
##Usage
77
+
##Usage
78
78
79
79
Note: For clarification on Microsoft SQL Server terminology, please see [Microsoft SQL Server Terms](#microsoft-sql-server-terms) below.
80
80
81
-
###Install SQL Server tools and features not specific to a SQL Server instance
81
+
###Install SQL Server tools and features not specific to a SQL Server instance
####Use `sqlserver_tsql` to trigger other classes or defines
156
+
####Use `sqlserver_tsql` to trigger other classes or defines
157
157
158
158
~~~puppet
159
159
sqlserver_tsql{ 'Query Logging DB Status':
160
-
instance => 'MSSQLSERVER',
161
-
onlyif => "IF (SELECT count(*) FROM myDb.dbo.logging_table WHERE
162
-
message like 'FATAL%') > 1000 THROW 50000, 'Fatal Exceptions in Logging', 10",
163
-
notify => Exec['Too Many Fatal Errors']
160
+
instance => 'MSSQLSERVER',
161
+
onlyif => "IF (SELECT count(*) FROM myDb.dbo.logging_table WHERE
162
+
message like 'FATAL%') > 1000 THROW 50000, 'Fatal Exceptions in Logging', 10",
163
+
notify => Exec['Too Many Fatal Errors']
164
164
}
165
165
~~~
166
166
167
-
####Clean up regular logs with conditional checks
167
+
####Clean up regular logs with conditional checks
168
168
169
169
~~~puppet
170
170
sqlserver_tsql{ 'Cleanup Old Logs':
171
-
instance => 'MSSQLSERVER',
172
-
command => "DELETE FROM myDb.dbo.logging_table WHERE log_date < '${log_max_date}'",
173
-
onlyif => "IF exists(SELECT * FROM myDb.dbo.logging_table WHERE log_date < '${log_max_date}')
174
-
THROW 50000, 'need log cleanup', 10",
171
+
instance => 'MSSQLSERVER',
172
+
command => "DELETE FROM myDb.dbo.logging_table WHERE log_date < '${log_max_date}'",
173
+
onlyif => "IF exists(SELECT * FROM myDb.dbo.logging_table WHERE log_date < '${log_max_date}')
174
+
THROW 50000, 'need log cleanup', 10",
175
175
}
176
176
~~~
177
177
178
-
####If you want your statement to always execute, leave out the `onlyif` parameter
178
+
####Always execute a statement by omitting the `onlyif` parameter
179
179
180
180
~~~puppet
181
181
sqlserver_tsql{ 'Always running':
182
-
instance => 'MSSQLSERVER',
183
-
command => 'EXEC notified_executor()',
182
+
instance => 'MSSQLSERVER',
183
+
command => 'EXEC notified_executor()',
184
184
}
185
185
~~~
186
186
@@ -206,7 +206,7 @@ Installs and configures features such as SSMS and Master Data Service.
206
206
207
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
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.
209
+
*`windows_feature_source`: *Optional.* Specifies the location of the Windows Feature source files, which might be needed to install the .NET Framework. See https://support.microsoft.com/en-us/kb/2734782 for more information.
210
210
211
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.
212
212
@@ -263,7 +263,7 @@ Installs and configures a SQL Server instance.
263
263
264
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.
265
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.
266
+
*`windows_feature_source`: *Optional.* Specifies the location of the Windows Feature source files, which might be needed to install the .NET Framework. See https://support.microsoft.com/en-us/kb/2734782 for more information.
267
267
268
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.
269
269
@@ -272,7 +272,7 @@ For more information about installer switches and configuring SQL Server, see th
Executes a TSQL query against a SQL Server instance.
278
278
@@ -292,7 +292,7 @@ Requires the `sqlserver::config` define for access to the parent instance.
292
292
293
293
Stores credentials for Puppet to use when managing a given SQL Server instance.
294
294
295
-
*`admin_login_type`: *Optional.* Specifies the type of login used to manage to SQL Server instace. The login type affects the `admin_user` and admin_pass` parameters which are described below. Valid options: 'SQL_LOGIN' and 'WINDOWS_LOGIN'. Default: 'SQL_LOGIN'.
295
+
*`admin_login_type`: *Optional.* Specifies the type of login used to manage to SQL Server instance. The login type affects the `admin_user` and `admin_pass` parameters which are described below. Valid options: 'SQL_LOGIN' and 'WINDOWS_LOGIN'. Default: 'SQL_LOGIN'.
296
296
297
297
- When using SQL Server based authentication - `SQL_LOGIN`
298
298
@@ -302,9 +302,9 @@ Stores credentials for Puppet to use when managing a given SQL Server instance.
302
302
303
303
- When using Windows based authentication - `WINDOWS_LOGIN`
304
304
305
-
*`admin_pass`: *Optional.* Valid options: undefined or an empty string `''`
305
+
*`admin_pass`: *Optional.* Valid options: undefined or an empty string (`''`).
306
306
307
-
*`admin_user`: *Optional.* Valid options: undefined or an empty string `''`
307
+
*`admin_user`: *Optional.* Valid options: undefined or an empty string (`''`).
308
308
309
309
*`instance_name`: *Optional.* Specifies a SQL Server instance to manage. Valid options: a string containing the name of an existing instance. Default: the title of your declared resource.
310
310
@@ -549,14 +549,14 @@ Terminology differs somewhat between various database systems; please refer to t
549
549
***Role:** a database-level or server-level permissions group.
550
550
***User:** a database-level account, typically mapped to a login.
551
551
552
-
##Limitations
552
+
##Limitations
553
553
554
-
This module is available only for Windows Server 2012 or 2012R2, and works with Puppet Enterprise 3.7 and later.
554
+
This module is available only for Windows Server 2012 or 2012 R2, and works with Puppet Enterprise 3.7 and later.
555
555
556
556
## Development
557
557
558
-
This module was built by Puppet Inc specifically for use with Puppet Enterprise (PE).
558
+
This module was built by Puppet Inc. specifically for use with Puppet Enterprise (PE).
559
559
560
560
If you run into an issue with this module, or if you would like to request a feature, please [file a ticket](https://tickets.puppet.com/browse/MODULES/).
561
561
562
-
If you are having problems getting this module up and running, please [contact Support](http://puppet.com/services/customer-support).
562
+
If you have problems getting this module up and running, please [contact Support](https://puppet.com/support-services/customer-support).
0 commit comments