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