-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigData.psd1
118 lines (104 loc) · 3.78 KB
/
ConfigData.psd1
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
@{
AllNodes = @(
@{
NodeName = "*"
InterfaceAlias = "Ethernet"
DefaultGateway = "192.168.100.100"
SubnetMask = 24
AddressFamily = "IPv4"
DnsAddress = "192.168.100.1"
DomainName = "ELKDemo"
DomainFullName = "ELKDemo.local"
DomainAccount = "Administrator"
PSDscAllowPlainTextPassword = $true
Generation = "vhdx"
VhdPath = "$PSScriptRoot\vm"
VhdSrcPath = "c:\VHD\Ref_W12R2EN_unattend.vhdx"
},
@{
NodeName = "DC01"
Role = "PDC"
IPAddress = "192.168.100.1"
},
@{
NodeName = "SRV01"
Role = "SRV"
IPAddress = "192.168.100.2"
},
@{
NodeName = "localhost"
Role = "VMHost"
MemorySize = 2GB
MemorySizeSql = 4GB
ProcessorCount = 4
DemoNetworkSwitchName = "Internal"
HostIPAddressOnInternalSwitch = "192.168.100.100"
SubnetMask = 24
AddressFamily = "IPv4"
UnattendxmlPath = "$PSScriptRoot\deployment\unattend.xml"
VMAdministratorName = "Administrator"
VMAdministratorPassword = "P@ssw0rd"
FilesToCopy = @(
@{
SourcePath = "$PSScriptRoot\deployment";
DestinationPath = "deployment"
Type = "Directory"
Recurse = $true
}
@{
SourcePath = "$PSScriptRoot\deployment\Run.ps1";
DestinationPath = "Windows\System32\Configuration\Run.ps1"
Type = "File"
}
@{
SourcePath = "$PSScriptRoot\DSCResources"
DestinationPath = "Program Files\WindowsPowerShell\Modules"
Type = "Directory"
Recurse = $true
}
);
Pdc = @{
VhdName = "dc01"
FilesToCopy = @(
@{
SourcePath = "$PSScriptRoot\GetMofFile\dc01.mof";
DestinationPath = "Windows\System32\Configuration\localhost.mof"
Type = "Directory"
Recurse = $true
}
@{
SourcePath = "$PSScriptRoot\GetMofFile\dc01.meta.mof";
DestinationPath = "Windows\System32\Configuration\localhost.meta.mof"
Type = "File"
}
@{
SourcePath = "$PSScriptRoot\deployment\dc01.xml";
DestinationPath = "unattend.xml"
Type = "File"
}
);
}
SRV01 = @{
VhdName = "SRV01"
FilesToCopy = @(
@{
SourcePath = "$PSScriptRoot\GetMofFile\srv01.mof";
DestinationPath = "Windows\System32\Configuration\localhost.mof"
Type = "Directory"
Recurse = $true
}
@{
SourcePath = "$PSScriptRoot\GetMofFile\srv01.meta.mof";
DestinationPath = "Windows\System32\Configuration\localhost.meta.mof"
Type = "File"
}
@{
SourcePath = "$PSScriptRoot\deployment\srv01.xml";
DestinationPath = "unattend.xml"
Type = "File"
}
);
};
}
)
}