This commit is contained in:
Henry Wang 2020-02-03 12:53:59 +08:00
parent 38a031a77a
commit 694b9f85e4

View File

@ -1,20 +1,20 @@
class sqlserverhenry::win_sqlserver { class sqlserverhenry::win_sqlserver {
sqlserver_instance{ 'MSSQLSERVER': sqlserver_instance{ 'MSSQLSERVER':
features => ['SQL'], source => 'E:/',
source => 'E:/', features => ['SQL'],
sql_sysadmin_accounts => ['myuser'], security_mode => 'SQL',
} sa_pwd => 'p@ssw0rd!!',
sql_sysadmin_accounts => ['myuser'],
sqlserver::config { 'MSSQLSERVER': install_switches => {
admin_login_type => 'WINDOWS_LOGIN' 'TCPENABLED' => 1,
} 'SQLBACKUPDIR' => 'C:\\MSSQLSERVER\\backupdir',
'SQLTEMPDBDIR' => 'C:\\MSSQLSERVER\\tempdbdir',
'INSTALLSQLDATADIR' => 'C:\\MSSQLSERVER\\datadir',
sqlserver::sp_configure{'Turn On Advanced': 'INSTANCEDIR' => 'C:\\Program Files\\Microsoft SQL Server',
config_name => 'show advanced option', 'INSTALLSHAREDDIR' => 'C:\\Program Files\\Microsoft SQL Server',
value => 1, 'INSTALLSHAREDWOWDIR' => 'C:\\Program Files (x86)\\Microsoft SQL Server',
reconfigure => true,
} }
}
} }