-
Notifications
You must be signed in to change notification settings - Fork 2
/
PSDEVOPSv2.psd1
86 lines (81 loc) · 4.09 KB
/
PSDEVOPSv2.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
@{
AllNodes = @(
@{
NodeName = '*';
InterfaceAlias = 'Ethernet';
DefaultGateway = '10.200.0.2';
SubnetMask = 24;
AddressFamily = 'IPv4';
DnsServerAddress = '10.200.0.10';
DomainName = 'psdevops.local';
#CertificateFile = "$env:AllUsersProfile\Lability\Certificates\LabClient.cer";
#Thumbprint = '5940D7352AB397BFB2F37856AA062BB471B43E5E';
PSDscAllowPlainTextPassword = $true;
PSDscAllowDomainUser = $true; # Removes 'It is not recommended to use domain credential for node X' messages
Lability_SwitchName = 'NAT';
Lability_ProcessorCount = 1;
Lability_StartupMemory = 2GB;
Lability_Media = '2016TP5_x64_Standard_EN';
Lability_Resource = @('Git-2.10.0');
}
@{
NodeName = 'DC1';
IPAddress = '10.200.0.10';
DnsServerAddress = '127.0.0.1';
Role = 'DC';
Lability_ProcessorCount = 2;
Lability_BootOrder = 10;
Lability_BootDelay = 60;
}
@{
NodeName = 'APP1';
IPAddress = '10.200.0.11';
Role = 'APP';
Lability_BootOrder = 50;
}
@{
NodeName = 'CLIENT1';
Role = 'CLIENT';
Lability_Media = 'WIN10_x64_Enterprise_EN_Eval';
Lability_BootOrder = 60;
}
);
NonNodeData = @{
Lability = @{
EnvironmentPrefix = 'PSDEVOPS-';
Network = @(
## Create Hyper-V switches; see Lability\about_Networking for more details
## @{ Name = 'NAT'; Type = 'Internal'; }
);
DSCResource = @(
## Download published version from the PowerShell Gallery
@{ Name = 'xComputerManagement'; MinimumVersion = '1.3.0.0'; Provider = 'PSGallery'; }
## If not specified, the provider defaults to the PSGallery.
@{ Name = 'xPSDesiredStateConfiguration'; MinimumVersion = '3.13.0.0'; }
@{ Name = 'xSmbShare'; MinimumVersion = '1.1.0.0'; }
@{ Name = 'xNetworking'; MinimumVersion = '2.7.0.0'; }
@{ Name = 'xActiveDirectory'; MinimumVersion = '2.9.0.0'; }
@{ Name = 'xDnsServer'; MinimumVersion = '1.5.0.0'; }
@{ Name = 'xDhcpServer'; MinimumVersion = '1.3.0.0'; }
## The 'GitHub' provider can download modules directly from a GitHub repository, for example:
## @{ Name = 'Lability'; Provider = 'GitHub'; Owner = 'VirtualEngine'; Repository = 'Lability'; Branch = 'dev'; }
);
Resource = @(
## Download required resources, see Lability\about_CustomResources for more details
@{ Id = 'Git-2.10.0';
Filename = 'Git-2.10.0-64-bit.exe'
Uri = 'https://github.com/git-for-windows/git/releases/download/v2.10.0.windows.1/Git-2.10.0-64-bit.exe'; }
);
Module = @(
## Download required modules
@{ Name = 'GitHubRepository'; MinimumVersion = '1.2.0'; }
@{ Name = 'Pester'; MinimumVersion = '3.4.3'; }
@{ Name = 'PoshSpec'; MinimumVersion = '2.1.10'; }
@{ Name = 'OperationValidation'; MinimumVersion = '1.0.1'; }
@{ Name = 'PSake'; MinimumVersion = '4.6.0'; }
@{ Name = 'PSDeploy'; MinimumVersion = '0.1.18'; }
@{ Name = 'PSReadline'; MinimumVersion = '1.2'; }
);
};
};
};