-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathReferenceConfigurationTest.yml
More file actions
171 lines (171 loc) · 4.55 KB
/
Copy pathReferenceConfigurationTest.yml
File metadata and controls
171 lines (171 loc) · 4.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
WindowsFeatures:
Names:
- +Web-Server
- -WoW64-Support
- -Telnet-Client
Description: 'WebServer in '
DscDiagnostic: {}
Name: ReferenceConfigurationTest
DscLcmController:
MonitorInterval: 00:15:00
SendDscTaggingData: true
AutoCorrectInterval: 00:30:00
MaintenanceWindowMode: AutoCorrect
RefreshIntervalOverride: false
MaintenanceWindowOverride: false
ControllerInterval: 00:05:00
RefreshInterval: 00:30:00
MaxLcmRuntime: 00:30:00
LogHistoryTimeSpan: 7.00:00:00
WriteTranscripts: true
AutoCorrectIntervalOverride: false
PSDscAllowPlainTextPassword: true
PSDscAllowDomainUser: true
ComputerSettings:
Name: ReferenceConfigurationTest
Description: 'WebServer in '
TimeZone: Greenwich Standard Time
DomainName: contoso.com
JoinOU: CN=Computers,dc=contoso,dc=com
Credential: install@contoso:*********
DscLcmMaintenanceWindows:
MaintenanceWindows:
Name: Always
StartTime: 00:00:00
Timespan: 24:00:00
DependsOn: '[DscLcmController]DscLcmController'
Configurations:
- FilesAndFolders
- WindowsServices
- RegistryValues
- WebApplicationPools
- WebApplications
- SecurityBase
- WindowsFeatures
- ComputerSettings
- NetworkIpConfiguration
- WindowsEventLogs
- DscLcmController
- DscLcmMaintenanceWindows
- DscTagging
- DscDiagnostic
SecurityBase:
Role: WebServer
Location: Singapore
Baseline: Server
NetworkIpConfiguration:
Interfaces:
DnsServer: 192.168.111.10
Gateway: 127.0.0.2
DisableNetbios: true
Prefix: 24
InterfaceAlias: DscWorkshop 0
IpAddress: 127.0.0.2
DscTagging:
Environment: Test
Version: 0.3.0
Layers:
- AllNodes\Test\ReferenceConfigurationTest
- Environment\Test
- Locations\Singapore
- Roles\WebServer
- Baselines\Security
- Baselines\Server
- Baselines\DscLcm
WindowsServices:
Services:
Path: C:\DummyService.exe
Name: FileDummy
StartupType: Automatic
DisplayName: Dummy Service on Web Servers
DependsOn: '[RegistryValues]RegistryValues'
WebApplicationPools:
Items:
- Name: TestAppPool1
Ensure: Present
IdentityType: ApplicationPoolIdentity
State: Started
- DependsOn: '[WebAppPool]TestAppPool1'
Name: TestAppPool2
Ensure: Present
IdentityType: ApplicationPoolIdentity
State: Started
DependsOn:
- '[FilesAndFolders]FilesAndFolders'
- '[WindowsFeatures]WindowsFeatures'
FilesAndFolders:
Items:
- DestinationPath: C:\Test\Test-Environment
Type: Directory
- DestinationPath: C:\Test\Singapore
Type: Directory
- DestinationPath: C:\Inetpub\TestApp1
Type: Directory
- DestinationPath: C:\Inetpub\TestApp2
Type: Directory
- Contents: This is TestApp1
Type: File
DependsOn: '[File]file_C__Inetpub_TestApp1'
DestinationPath: C:\Inetpub\TestApp1\default.html
- Contents: This is TestApp2
Type: File
DependsOn: '[File]file_C__Inetpub_TestApp2'
DestinationPath: C:\Inetpub\TestApp2\default.html
NodeName: ReferenceConfigurationTest
Environment: Test
WebApplications:
Items:
- WebAppPool: TestAppPool1
Website: Default Web Site
PhysicalPath: C:\Inetpub\TestApp1
Ensure: Present
Name: TestApp1
- PhysicalPath: C:\Inetpub\TestApp2
Ensure: Present
Name: TestApp2
Website: Default Web Site
WebAppPool: TestAppPool2
DependsOn: '[WebApplication]webapp_TestApp1'
DependsOn: '[WebApplicationPools]WebApplicationPools'
RegistryValues:
DependsOn: '[WebApplications]WebApplications'
Values:
ValueName: NtpServer
ValueType: String
ValueData: time.windows.com,0x9;
Ensure: Present
Force: true
Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
LcmConfig:
ConfigurationRepositoryWeb:
Server:
ConfigurationNames: ReferenceConfigurationTest
RegistrationKey: ec717ee9-b343-49ee-98a2-26e53939eecf
ServerURL: https://dscpull01.contoso.com:8080/PSDSCPullServer.svc
ReportServerWeb:
RegistrationKey: ec717ee9-b343-49ee-98a2-26e53939eecf
ServerURL: https://dscpull01.contoso.com:8080/PSDSCPullServer.svc
Settings:
RefreshFrequencyMins: 30
AllowModuleOverwrite: true
ActionAfterReboot: ContinueConfiguration
RefreshMode: Pull
RebootNodeIfNeeded: true
ConfigurationMode: ApplyAndMonitor
ConfigurationModeFrequencyMins: 30
Role: WebServer
WindowsEventLogs:
Logs:
- LogMode: Circular
IsEnabled: true
LogName: System
MaximumSizeInBytes: 20971520
- LogMode: Circular
IsEnabled: true
LogName: Application
MaximumSizeInBytes: 20971520
- LogMode: Circular
IsEnabled: true
LogName: Security
MaximumSizeInBytes: 134217728
DependsOn: '[ComputerSettings]ComputerSettings'