vagrant-uplift 0.2.1902.19 → 0.2.1902.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/lib/scripts/vagrant/uplift.vagrant.dc12/dc.dsc.ps1 +2 -2
  3. data/lib/scripts/vagrant/uplift.vagrant.dc12/dc.replica.dsc.ps1 +2 -2
  4. data/lib/scripts/vagrant/uplift.vagrant.dc12/dc.users.dsc.ps1 +2 -2
  5. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/_sp2013_image_packages.dsc.ps1 +40 -0
  6. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2013.dsc.ps1 +2 -2
  7. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2013.post_setup.dsc.ps1 +3 -3
  8. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.dsc.ps1 +1 -1
  9. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.farm-minimal-services.dsc.ps1 +279 -0
  10. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.farm-only.dsc.ps1 +34 -128
  11. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.post_setup.dsc.ps1 +2 -2
  12. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.pre_setup2.dsc.ps1 +2 -2
  13. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.sp-accounts.dsc.ps1 +98 -0
  14. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.sp-image-setup.dsc.ps1 +56 -0
  15. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.sql-accounts.dsc.ps1 +106 -0
  16. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/sp2016.web-application.dsc.ps1 +117 -0
  17. data/lib/scripts/vagrant/uplift.vagrant.sharepoint/tests/sp2016.minimal-services.Tests.ps1 +47 -0
  18. data/lib/scripts/vagrant/uplift.vagrant.sql12/sql.dsc.ps1 +1 -1
  19. data/lib/scripts/vagrant/uplift.vagrant.sql12/sql.optimize.dsc.ps1 +3 -2
  20. data/lib/scripts/vagrant/uplift.vagrant.sql12/sql.prepare.dsc.ps1 +1 -1
  21. data/lib/scripts/vagrant/uplift.vagrant.win12soe/soe.shortcuts.dsc.ps1 +58 -4
  22. data/lib/vagrant-uplift/appinsights.rb +173 -0
  23. data/lib/vagrant-uplift/config_builder.rb +1231 -819
  24. data/lib/vagrant-uplift/log.rb +15 -4
  25. data/lib/vagrant-uplift/version.rb +1 -1
  26. metadata +13 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 801c59a33a206f549226eb5f45857fa1fdd42666009be7087a1d61756483d44b
4
- data.tar.gz: d711d979489e2c2bd7ae3ac1261e6ac28e0aab356eea3b2a4814a87978ceaa31
3
+ metadata.gz: 49ebda5535fdce1533d6678488309234413d6b02da26ca01f72c5ef22bd6cc14
4
+ data.tar.gz: dbc429be596eba7ea13524837359c8bfe86e4a745ff32298ae92b4efb4ff8e7f
5
5
  SHA512:
6
- metadata.gz: eeb82aa0aca6ba27ef45866bba038f162536cbbbe363b394f4606c6beecc1d784a641d05f77a3d0f3eba4e63898ca3729c996449474a1ad5e4ca3a75ed7a2555
7
- data.tar.gz: b310cd21b586e41de81416cf5c36e3aa7d9adb5c815c41b1d82b6f2783634d7b1803627933f80e0caa244674d6fb4c6aa3594f353ad5bdc38801bf78963d10b3
6
+ metadata.gz: 71f9831fb8d7a97aae0c091d7a94a15041c7212acbe6e149d272b61c74760c26e7b4e9549071fb4fbc2a09936f0eb593a7438c9c91104076d77397e0e64a58c5
7
+ data.tar.gz: ae735a1c7e239762b7cc74b0b5be7cc10e0ffbf6f21a72316af197ef1ab99be29af998d5af87f1a3dac86fa30812a3e291afa1dade1c48d8f7d0b211ea4faa7d
@@ -23,8 +23,8 @@ Set-UpliftDCPromoSettings $domainAdminPassword
23
23
  Configuration Install_DomainController {
24
24
 
25
25
  Import-DscResource -ModuleName 'PSDesiredStateConfiguration'
26
- Import-DscResource -ModuleName 'xActiveDirectory'
27
- Import-DscResource -ModuleName 'xNetworking'
26
+ Import-DscResource -ModuleName 'xActiveDirectory' -ModuleVersion "2.17.0.0"
27
+ Import-DscResource -ModuleName 'xNetworking' -ModuleVersion "5.5.0.0"
28
28
 
29
29
  Node localhost
30
30
  {
@@ -19,8 +19,8 @@ Disable-UpliftIP6Interface
19
19
 
20
20
  Configuration Install_ReplicaDomainController {
21
21
 
22
- Import-DscResource -ModuleName xActiveDirectory
23
- Import-DscResource -ModuleName xNetworking
22
+ Import-DscResource -ModuleName xActiveDirectory -ModuleVersion 2.17.0.0
23
+ Import-DscResource -ModuleName xNetworking -ModuleVersion 5.5.0.0
24
24
 
25
25
  Node localhost
26
26
  {
@@ -89,8 +89,8 @@ $vagrantCreds = New-Object System.Management.Automation.PSCredential(
89
89
 
90
90
  Configuration Configure_DomainUsers {
91
91
 
92
- Import-DscResource -ModuleName xActiveDirectory
93
- Import-DscResource -ModuleName xNetworking
92
+ Import-DscResource -ModuleName xActiveDirectory -ModuleVersion 2.17.0.0
93
+ Import-DscResource -ModuleName xNetworking -ModuleVersion 5.5.0.0
94
94
 
95
95
  Node localhost
96
96
  {
@@ -0,0 +1,40 @@
1
+ # fail on errors and include uplift helpers
2
+ $ErrorActionPreference = "Stop"
3
+
4
+ Import-Module Uplift.Core
5
+
6
+ Write-UpliftMessage "[~] Installing SharePoint specific PowerShell modules"
7
+ Write-UpliftEnv
8
+
9
+ $packages = @(
10
+
11
+ @{
12
+ Id = "xCredSSP";
13
+ Version = @(
14
+ "1.3.0.0"
15
+ )
16
+ },
17
+
18
+ @{
19
+ Id = "SharePointDSC";
20
+ Version = @(
21
+ "3.1.0.0",
22
+ "3.0.0.0",
23
+
24
+ "2.6.0.0",
25
+ "2.5.0.0",
26
+ "2.4.0.0",
27
+ "2.3.0.0",
28
+ "2.2.0.0",
29
+ "2.1.0.0",
30
+ "2.0.0.0",
31
+
32
+ "1.9.0.0",
33
+ "1.8.0.0"
34
+ )
35
+ }
36
+ )
37
+
38
+ Install-UpliftPSModules $packages
39
+
40
+ exit 0
@@ -6,7 +6,7 @@ Import-Module Uplift.Core
6
6
  # include shared helpers from uplift.vagrant.sharepoint handler
7
7
  . "c:/windows/temp/uplift.vagrant.sharepoint/shared/sp.helpers.ps1"
8
8
 
9
- Write-UpliftMessage "Creating new SharePoint farm..."
9
+ Write-UpliftMessage "Creating new SharePoint farm, full services"
10
10
  Write-UpliftEnv
11
11
 
12
12
  $spSqlServerName = Get-UpliftEnvVariable "UPLF_SP_FARM_SQL_SERVER_HOST_NAME"
@@ -24,7 +24,7 @@ Initialize-UpSPSqlServer $spSqlServerName $spSqlDbPrefix
24
24
  Configuration Install_SharePointFarm
25
25
  {
26
26
  Import-DscResource -ModuleName PSDesiredStateConfiguration
27
- Import-DscResource -ModuleName SharePointDsc
27
+ Import-DscResource -ModuleName SharePointDsc -ModuleVersion "1.9.0.0"
28
28
 
29
29
  Node localhost {
30
30
 
@@ -6,14 +6,14 @@ Import-Module Uplift.Core
6
6
  # include shared helpers from uplift.vagrant.sharepoint handler
7
7
  . "c:/windows/temp/uplift.vagrant.sharepoint/shared/sp.helpers.ps1"
8
8
 
9
- Write-UpliftMessage "Running SharePoint post-setup tuning..."
9
+ Write-UpliftMessage "Running SharePoint post-setup tuning"
10
10
  Write-UpliftEnv
11
11
 
12
12
  Configuration Install_SharePointFarmTuning
13
13
  {
14
14
  Import-DscResource -ModuleName PSDesiredStateConfiguration
15
- Import-DscResource -ModuleName SharePointDsc
16
- Import-DscResource -ModuleName xWebAdministration
15
+ Import-DscResource -ModuleName SharePointDsc -ModuleVersion "1.9.0.0"
16
+ Import-DscResource -ModuleName xWebAdministration -ModuleVersion "1.19.0.0"
17
17
 
18
18
  Node localhost {
19
19
 
@@ -24,7 +24,7 @@ Initialize-UpSPSqlServer $spSqlServerName $spSqlDbPrefix
24
24
  Configuration Install_SharePointFarm
25
25
  {
26
26
  Import-DscResource -ModuleName PSDesiredStateConfiguration
27
- Import-DscResource -ModuleName SharePointDsc
27
+ Import-DscResource -ModuleName SharePointDsc -ModuleVersion "1.9.0.0"
28
28
 
29
29
  Node localhost {
30
30
 
@@ -0,0 +1,279 @@
1
+ # fail on errors and include uplift helpers
2
+ $ErrorActionPreference = "Stop"
3
+
4
+ Import-Module Uplift.Core
5
+
6
+ # include shared helpers from uplift.vagrant.sharepoint handler
7
+ . "c:/windows/temp/uplift.vagrant.sharepoint/shared/sp.helpers.ps1"
8
+
9
+ Write-UpliftMessage "Provisioning SharePoint farm minimal services"
10
+ Write-UpliftEnv
11
+
12
+ $spSqlServerName = Get-UpliftEnvVariable "UPLF_SP_FARM_SQL_SERVER_HOST_NAME"
13
+ $spSqlDbPrefix = Get-UpliftEnvVariable "UPLF_SP_FARM_SQL_DB_PREFIX"
14
+
15
+ $spSetupUserName = Get-UpliftEnvVariable "UPLF_SP_SETUP_USER_NAME"
16
+ $spSetupUserPassword = Get-UpliftEnvVariable "UPLF_SP_SETUP_USER_PASSWORD"
17
+
18
+ Configuration Install_SharePointFarmAdmins {
19
+
20
+ Import-DscResource -ModuleName PSDesiredStateConfiguration
21
+ Import-DscResource -ModuleName SharePointDsc -ModuleVersion 3.1.0.0
22
+
23
+ Node localhost {
24
+ $setupUserName = $Node.SetupUserName
25
+ $setupUserPassword = $Node.SetupUserPassword
26
+
27
+ $secureSetupUserPassword = ConvertTo-SecureString $setupUserPassword -AsPlainText -Force
28
+ $setupUserCreds = New-Object System.Management.Automation.PSCredential($setupUserName, $secureSetupUserPassword)
29
+
30
+ $SPSetupAccount = $setupUserCreds
31
+
32
+ # TODO
33
+ $spFarmUsers = @(
34
+ "uplift\sp_install"
35
+ "uplift\sp_admin"
36
+ )
37
+
38
+ LocalConfigurationManager
39
+ {
40
+ RebootNodeIfNeeded = $false
41
+ }
42
+
43
+ # account setup
44
+ SPShellAdmins ShellAdmins
45
+ {
46
+ IsSingleInstance = "Yes"
47
+ MembersToInclude = $spFarmUsers
48
+ AllDatabases = $true
49
+
50
+ PsDscRunAsCredential = $SPSetupAccount
51
+ }
52
+
53
+ SPFarmAdministrators LocalFarmAdmins
54
+ {
55
+ IsSingleInstance = "Yes"
56
+ MembersToInclude = $spFarmUsers
57
+
58
+ PsDscRunAsCredential = $SPSetupAccount
59
+ }
60
+ }
61
+ }
62
+
63
+ Configuration Install_SharePointFarmMinimalServices
64
+ {
65
+ Import-DscResource -ModuleName PSDesiredStateConfiguration
66
+ Import-DscResource -ModuleName SharePointDsc -ModuleVersion 3.1.0.0
67
+
68
+ function GetCreds($name, $pass) {
69
+ return New-Object System.Management.Automation.PSCredential(
70
+ $name,
71
+ (ConvertTo-SecureString $pass -AsPlainText -Force)
72
+ )
73
+ }
74
+
75
+ Node localhost {
76
+ $setupUserName = $Node.SetupUserName
77
+ $setupUserPassword = $Node.SetupUserPassword
78
+
79
+ $secureSetupUserPassword = ConvertTo-SecureString $setupUserPassword -AsPlainText -Force
80
+ $setupUserCreds = New-Object System.Management.Automation.PSCredential($setupUserName, $secureSetupUserPassword)
81
+
82
+ $SPSetupAccount = $setupUserCreds
83
+ $SPFarmAccount = $setupUserCreds
84
+
85
+ $SPServicePoolManagedAccount = $setupUserCreds
86
+ $SPWebPoolManagedAccount = $setupUserCreds
87
+
88
+ $SPUserProfileServiceAccount = GetCreds "sp_install" "uplift!QAZ"
89
+ $SPServiceAppPoolName = "SharePoint Service Applications"
90
+
91
+ LocalConfigurationManager
92
+ {
93
+ RebootNodeIfNeeded = $false
94
+ }
95
+
96
+ # ensuring that required services are up before running SharePoint farm creation
97
+ # that allows to fail eraly in case of spoiled images
98
+ Service W3SVC
99
+ {
100
+ Name = "W3SVC"
101
+ StartupType = "Automatic"
102
+ State = "Running"
103
+ }
104
+
105
+ Service IISADMIN
106
+ {
107
+ DependsOn = "[Service]W3SVC"
108
+
109
+ Name = "IISADMIN"
110
+ StartupType = "Automatic"
111
+ State = "Running"
112
+ }
113
+
114
+ # accounts
115
+ SPManagedAccount ServicePoolManagedAccount
116
+ {
117
+ AccountName = $SPServicePoolManagedAccount.UserName
118
+ Account = $SPServicePoolManagedAccount
119
+ PsDscRunAsCredential = $SPSetupAccount
120
+ }
121
+ SPManagedAccount WebPoolManagedAccount
122
+ {
123
+ AccountName = $SPWebPoolManagedAccount.UserName
124
+ Account = $SPWebPoolManagedAccount
125
+ PsDscRunAsCredential = $SPSetupAccount
126
+ }
127
+
128
+ # default apps
129
+ SPUsageApplication UsageApplication
130
+ {
131
+ Name = "Usage Service Application"
132
+ DatabaseName = ($spSqlDbPrefix + "_SP_Usage" )
133
+ UsageLogCutTime = 5
134
+ UsageLogLocation = "C:\UsageLogs"
135
+ UsageLogMaxFileSizeKB = 1024
136
+ PsDscRunAsCredential = $SPSetupAccount
137
+ }
138
+
139
+ SPStateServiceApp StateServiceApp
140
+ {
141
+ Name = "State Service Application"
142
+ DatabaseName = ($spSqlDbPrefix + "_SP_State")
143
+ PsDscRunAsCredential = $SPSetupAccount
144
+ }
145
+
146
+ SPDistributedCacheService EnableDistributedCache
147
+ {
148
+ Name = "AppFabricCachingService"
149
+ Ensure = "Present"
150
+ CacheSizeInMB = 1024
151
+ ServiceAccount = $SPServicePoolManagedAccount.UserName
152
+ PsDscRunAsCredential = $SPSetupAccount
153
+ CreateFirewallRules = $true
154
+ DependsOn = @('[SPManagedAccount]ServicePoolManagedAccount')
155
+ }
156
+
157
+ # default services
158
+ SPServiceInstance ClaimsToWindowsTokenServiceInstance
159
+ {
160
+ Name = "Claims to Windows Token Service"
161
+ Ensure = "Present"
162
+ PsDscRunAsCredential = $SPSetupAccount
163
+ }
164
+
165
+ SPServiceInstance SecureStoreServiceInstance
166
+ {
167
+ Name = "Secure Store Service"
168
+ Ensure = "Present"
169
+ PsDscRunAsCredential = $SPSetupAccount
170
+ }
171
+
172
+ SPServiceInstance ManagedMetadataServiceInstance
173
+ {
174
+ Name = "Managed Metadata Web Service"
175
+ Ensure = "Present"
176
+ PsDscRunAsCredential = $SPSetupAccount
177
+ }
178
+
179
+ SPServiceInstance SearchServiceInstance
180
+ {
181
+ Name = "SharePoint Server Search"
182
+ Ensure = "Present"
183
+ PsDscRunAsCredential = $SPSetupAccount
184
+ }
185
+
186
+ # service applications
187
+ SPServiceAppPool MainServiceAppPool
188
+ {
189
+ Name = $SPServiceAppPoolName
190
+ ServiceAccount = $SPServicePoolManagedAccount.UserName
191
+ PsDscRunAsCredential = $SPSetupAccount
192
+ }
193
+
194
+ SPSecureStoreServiceApp SecureStoreServiceApp
195
+ {
196
+ Name = "Secure Store Service Application"
197
+ ApplicationPool = $SPServiceAppPoolName
198
+ AuditingEnabled = $true
199
+ AuditlogMaxSize = 30
200
+ DatabaseName = ($spSqlDbPrefix + "_SP_SecureStore")
201
+ PsDscRunAsCredential = $SPSetupAccount
202
+ DependsOn = "[SPServiceAppPool]MainServiceAppPool"
203
+ }
204
+
205
+ SPManagedMetaDataServiceApp ManagedMetadataServiceApp
206
+ {
207
+ Name = "Managed Metadata Service Application"
208
+ PsDscRunAsCredential = $SPSetupAccount
209
+ ApplicationPool = $SPServiceAppPoolName
210
+ DatabaseName = ($spSqlDbPrefix + "_SP_MMS")
211
+ DependsOn = "[SPServiceAppPool]MainServiceAppPool"
212
+ }
213
+
214
+ SPSearchServiceApp SearchServiceApp
215
+ {
216
+ Name = "Search Service Application"
217
+ DatabaseName = ($spSqlDbPrefix + "_SP_Search")
218
+ ApplicationPool = $SPServiceAppPoolName
219
+ PsDscRunAsCredential = $SPSetupAccount
220
+ DependsOn = "[SPServiceAppPool]MainServiceAppPool"
221
+ }
222
+
223
+ SPUserProfileServiceApp UserProfileServiceApp
224
+ {
225
+ Name = "User Profile Service Application"
226
+
227
+ ApplicationPool = $SPServiceAppPoolName
228
+
229
+ #MySiteHostLocation = ("http://my.cntoso.local")
230
+ #MySiteManagedPath = "personal"
231
+
232
+ ProfileDBName = ($spSqlDbPrefix + "SP_UserProfiles")
233
+ ProfileDBServer = "$spSqlServerName"
234
+
235
+ SocialDBName = ($spSqlDbPrefix + "SP_Social")
236
+ SocialDBServer = "$spSqlServerName"
237
+
238
+ SyncDBName = ($spSqlDbPrefix + "SP_ProfileSync")
239
+ SyncDBServer = "$spSqlServerName"
240
+
241
+ EnableNetBIOS = $false
242
+
243
+ #FarmAccount = $SPSetupAccount
244
+ #InstallAccount = $SPSetupAccount
245
+
246
+ PsDscRunAsCredential = $SPUserProfileServiceAccount
247
+
248
+ DependsOn = @(
249
+ "[SPServiceAppPool]MainServiceAppPool"
250
+ )
251
+ }
252
+ }
253
+ }
254
+
255
+ $config = @{
256
+ AllNodes = @(
257
+ @{
258
+ NodeName = 'localhost'
259
+
260
+ PSDscAllowDomainUser = $true
261
+ PSDscAllowPlainTextPassword = $true
262
+
263
+ SetupUserName = $spSetupUserName
264
+ SetupUserPassword = $spSetupUserPassword
265
+ }
266
+ )
267
+ }
268
+
269
+ $shellAdminConfig = Get-Command Install_SharePointFarmAdmins
270
+ Start-UpliftDSCConfiguration $shellAdminConfig $config
271
+
272
+ $servicesConfig = Get-Command Install_SharePointFarmMinimalServices
273
+ Start-UpliftDSCConfiguration $servicesConfig $config
274
+
275
+ # re-ensure farm admins
276
+ $shellAdminConfig = Get-Command Install_SharePointFarmAdmins
277
+ Start-UpliftDSCConfiguration $shellAdminConfig $config
278
+
279
+ exit 0
@@ -6,7 +6,7 @@ Import-Module Uplift.Core
6
6
  # include shared helpers from uplift.vagrant.sharepoint handler
7
7
  . "c:/windows/temp/uplift.vagrant.sharepoint/shared/sp.helpers.ps1"
8
8
 
9
- Write-UpliftMessage "Creating new SharePoint farm..."
9
+ Write-UpliftMessage "Creating new SharePoint farm only"
10
10
  Write-UpliftEnv
11
11
 
12
12
  $spSqlServerName = Get-UpliftEnvVariable "UPLF_SP_FARM_SQL_SERVER_HOST_NAME"
@@ -59,7 +59,7 @@ if($hasFarm -eq $False) {
59
59
  Configuration Install_SharePointFarm
60
60
  {
61
61
  Import-DscResource -ModuleName PSDesiredStateConfiguration
62
- Import-DscResource -ModuleName SharePointDsc
62
+ Import-DscResource -ModuleName SharePointDsc -ModuleVersion "1.9.0.0"
63
63
 
64
64
  Node localhost {
65
65
 
@@ -79,8 +79,6 @@ Configuration Install_SharePointFarm
79
79
  $SPServicePoolManagedAccount = $setupUserCreds
80
80
  $SPWebPoolManagedAccount = $setupUserCreds
81
81
 
82
- $SPServiceAppPoolName = "SharePoint Service Applications"
83
-
84
82
  LocalConfigurationManager
85
83
  {
86
84
  RebootNodeIfNeeded = $false
@@ -107,9 +105,8 @@ Configuration Install_SharePointFarm
107
105
  # initial farm creation
108
106
  SPFarm CreateSPFarm
109
107
  {
110
- DependsOn = "[Service]IISADMIN"
111
-
112
108
  Ensure = "Present"
109
+
113
110
  ServerRole = "SingleServerFarm"
114
111
  DatabaseServer = $spSqlServerName
115
112
  FarmConfigDatabaseName = ($spSqlDbPrefix + "_Config")
@@ -118,145 +115,54 @@ Configuration Install_SharePointFarm
118
115
  PsDscRunAsCredential = $SPSetupAccount
119
116
  AdminContentDatabaseName = ($spSqlDbPrefix + "_AdminContent")
120
117
  RunCentralAdmin = $true
121
- #DependsOn = "[SPInstall]InstallSharePoint"
122
- }
123
-
124
- # accounts
125
- SPManagedAccount ServicePoolManagedAccount
126
- {
127
- AccountName = $SPServicePoolManagedAccount.UserName
128
- Account = $SPServicePoolManagedAccount
129
- PsDscRunAsCredential = $SPSetupAccount
130
- DependsOn = "[SPFarm]CreateSPFarm"
131
- }
132
- SPManagedAccount WebPoolManagedAccount
133
- {
134
- AccountName = $SPWebPoolManagedAccount.UserName
135
- Account = $SPWebPoolManagedAccount
136
- PsDscRunAsCredential = $SPSetupAccount
137
- DependsOn = "[SPFarm]CreateSPFarm"
138
- }
139
-
140
- # default apps
141
- SPUsageApplication UsageApplication
142
- {
143
- Name = "Usage Service Application"
144
- DatabaseName = ($spSqlDbPrefix + "_SP_Usage" )
145
- UsageLogCutTime = 5
146
- UsageLogLocation = "C:\UsageLogs"
147
- UsageLogMaxFileSizeKB = 1024
148
- PsDscRunAsCredential = $SPSetupAccount
149
- DependsOn = "[SPFarm]CreateSPFarm"
150
- }
151
-
152
- SPStateServiceApp StateServiceApp
153
- {
154
- Name = "State Service Application"
155
- DatabaseName = ($spSqlDbPrefix + "_SP_State")
156
- PsDscRunAsCredential = $SPSetupAccount
157
- DependsOn = "[SPFarm]CreateSPFarm"
158
- }
159
-
160
- SPDistributedCacheService EnableDistributedCache
161
- {
162
- Name = "AppFabricCachingService"
163
- Ensure = "Present"
164
- CacheSizeInMB = 1024
165
- ServiceAccount = $SPServicePoolManagedAccount.UserName
166
- PsDscRunAsCredential = $SPSetupAccount
167
- CreateFirewallRules = $true
168
- DependsOn = @('[SPFarm]CreateSPFarm','[SPManagedAccount]ServicePoolManagedAccount')
169
- }
170
-
171
- # default services
172
- SPServiceInstance ClaimsToWindowsTokenServiceInstance
173
- {
174
- Name = "Claims to Windows Token Service"
175
- Ensure = "Present"
176
- PsDscRunAsCredential = $SPSetupAccount
177
- DependsOn = "[SPFarm]CreateSPFarm"
178
- }
179
-
180
- SPServiceInstance SecureStoreServiceInstance
181
- {
182
- Name = "Secure Store Service"
183
- Ensure = "Present"
184
- PsDscRunAsCredential = $SPSetupAccount
185
- DependsOn = "[SPFarm]CreateSPFarm"
186
- }
187
-
188
- SPServiceInstance ManagedMetadataServiceInstance
189
- {
190
- Name = "Managed Metadata Web Service"
191
- Ensure = "Present"
192
- PsDscRunAsCredential = $SPSetupAccount
193
- DependsOn = "[SPFarm]CreateSPFarm"
194
- }
195
-
196
- SPServiceInstance BCSServiceInstance
197
- {
198
- Name = "Business Data Connectivity Service"
199
- Ensure = "Present"
200
- PsDscRunAsCredential = $SPSetupAccount
201
- DependsOn = "[SPFarm]CreateSPFarm"
202
- }
203
-
204
- SPServiceInstance SearchServiceInstance
205
- {
206
- Name = "SharePoint Server Search"
207
- Ensure = "Present"
208
- PsDscRunAsCredential = $SPSetupAccount
209
- DependsOn = "[SPFarm]CreateSPFarm"
118
+
119
+ DependsOn = "[Service]IISADMIN"
210
120
  }
211
121
 
212
- # # service applications
213
- # SPServiceAppPool MainServiceAppPool
122
+ # default accounts
123
+ # SPManagedAccount ServicePoolManagedAccount
214
124
  # {
215
- # Name = $SPServiceAppPoolName
216
- # ServiceAccount = $SPServicePoolManagedAccount.UserName
125
+ # AccountName = $SPServicePoolManagedAccount.UserName
126
+ # Account = $SPServicePoolManagedAccount
217
127
  # PsDscRunAsCredential = $SPSetupAccount
218
128
  # DependsOn = "[SPFarm]CreateSPFarm"
219
129
  # }
220
-
221
- # SPSecureStoreServiceApp SecureStoreServiceApp
130
+ # SPManagedAccount WebPoolManagedAccount
222
131
  # {
223
- # Name = "Secure Store Service Application"
224
- # ApplicationPool = $SPServiceAppPoolName
225
- # AuditingEnabled = $true
226
- # AuditlogMaxSize = 30
227
- # DatabaseName = ($spSqlDbPrefix + "_SP_SecureStore")
228
- # PsDscRunAsCredential = $SPSetupAccount
229
- # DependsOn = "[SPServiceAppPool]MainServiceAppPool"
132
+ # AccountName = $SPWebPoolManagedAccount.UserName
133
+ # Account = $SPWebPoolManagedAccount
134
+ # PsDscRunAsCredential = $SPSetupAccount
135
+ # DependsOn = "[SPFarm]CreateSPFarm"
230
136
  # }
231
137
 
232
- # SPManagedMetaDataServiceApp ManagedMetadataServiceApp
138
+ # default services
139
+ # SPUsageApplication UsageApplication
233
140
  # {
234
- # Name = "Managed Metadata Service Application"
235
- # PsDscRunAsCredential = $SPSetupAccount
236
- # ApplicationPool = $SPServiceAppPoolName
237
- # DatabaseName = ($spSqlDbPrefix + "_SP_MMS")
238
- # DependsOn = "[SPServiceAppPool]MainServiceAppPool"
141
+ # Name = "Usage Service Application"
142
+ # DatabaseName = ($spSqlDbPrefix + "_SP_Usage" )
143
+ # UsageLogCutTime = 5
144
+ # UsageLogLocation = "C:\UsageLogs"
145
+ # UsageLogMaxFileSizeKB = 1024
146
+ # PsDscRunAsCredential = $SPSetupAccount
147
+ # DependsOn = "[SPFarm]CreateSPFarm"
239
148
  # }
240
149
 
241
- # SPBCSServiceApp BCSServiceApp
150
+ # SPStateServiceApp StateServiceApp
242
151
  # {
243
- # Name = "BCS Service Application"
244
- # DatabaseServer = $spSqlServerName
245
- # ApplicationPool = $SPServiceAppPoolName
246
- # DatabaseName = ($spSqlDbPrefix + "_SP_BCS")
247
- # PsDscRunAsCredential = $SPSetupAccount
248
- # DependsOn = @('[SPServiceAppPool]MainServiceAppPool', '[SPSecureStoreServiceApp]SecureStoreServiceApp')
152
+ # Name = "State Service Application"
153
+ # DatabaseName = ($spSqlDbPrefix + "_SP_State")
154
+ # PsDscRunAsCredential = $SPSetupAccount
155
+ # DependsOn = "[SPFarm]CreateSPFarm"
249
156
  # }
250
157
 
251
- # SPSearchServiceApp SearchServiceApp
158
+ # SPServiceInstance ClaimsToWindowsTokenServiceInstance
252
159
  # {
253
- # Name = "Search Service Application"
254
- # DatabaseName = ($spSqlDbPrefix + "_SP_Search")
255
- # ApplicationPool = $SPServiceAppPoolName
256
- # PsDscRunAsCredential = $SPSetupAccount
257
- # DependsOn = "[SPServiceAppPool]MainServiceAppPool"
160
+ # Name = "Claims to Windows Token Service"
161
+ # Ensure = "Present"
162
+ # PsDscRunAsCredential = $SPSetupAccount
163
+ # DependsOn = "[SPFarm]CreateSPFarm"
258
164
  # }
259
- }
165
+ }
260
166
  }
261
167
 
262
168
  $config = @{