Skip to content

Commit 419e3d0

Browse files
committed
Merge branch 'stable'
* stable: [stable] Adding more advanced example for SQL Server
2 parents e7c661e + ed1ee4d commit 419e3d0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,29 @@ sqlserver_instance{'MSSQLSERVER':
5151

5252
This example installs MS SQL and creates an MS SQL instance named MSSQLSERVER. It also installs the base SQL feature set (Data Quality, FullText, Replication, and SQLEngine), specifies the location of the setup.exe, and creates a new SQL-only sysadmin, 'myuser'.
5353

54+
A more advanced configuration, including installer switches:
55+
56+
~~~puppet
57+
sqlserver_instance{'MSSQLSERVER':
58+
source => 'E:/',
59+
features => ['SQL'],
60+
security_mode => 'SQL',
61+
sa_pwd => 'p@ssw0rd!!',
62+
sql_sysadmin_accounts => ['myuser'],
63+
install_switches => {
64+
'TCPENABLED' => 1,
65+
'SQLBACKUPDIR' => 'C:\\MSSQLSERVER\\backupdir',
66+
'SQLTEMPDBDIR' => 'C:\\MSSQLSERVER\\tempdbdir',
67+
'INSTALLSQLDATADIR' => 'C:\\MSSQLSERVER\\datadir',
68+
'INSTANCEDIR' => 'C:\\Program Files\\Microsoft SQL Server',
69+
'INSTALLSHAREDDIR' => 'C:\\Program Files\\Microsoft SQL Server',
70+
'INSTALLSHAREDWOWDIR' => 'C:\\Program Files (x86)\\Microsoft SQL Server',
71+
}
72+
}
73+
~~~
74+
75+
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+
5477
##Usage
5578

5679
Note: For clarification on Microsoft SQL Server terminology, please see [Microsoft SQL Server Terms](#microsoft-sql-server-terms) below.

0 commit comments

Comments
 (0)