Examples/NanoComputeExample.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
@{
    AllNodes = @(
        @{
            NodeName                    = '*';
            InterfaceAlias              = 'Ethernet';
            DefaultGateway              = '10.0.0.254';
            PrefixLength                = 24;
            AddressFamily               = 'IPv4';
            DnsServerAddress            = '10.0.0.1';
            PSDscAllowPlainTextPassword = $true;
            Lability_SwitchName         = 'Internal';
        }
        @{
            NodeName                 = 'NANOCOMPUTE1';
            IPAddress                = '10.0.0.10';
            Lability_Media           = '2016_x64_Datacenter_Nano_Compute_EN_Eval';
            Lability_ProcessorCount  = 2;
            Lability_StartupMemory   = 2GB;
            Lability_WarningMessage  = "Keyboard layout will be 'EN-US'";

            ## Specify xVMProcessor options as a hashtable.
            Lability_ProcessorOption = @{ ExposeVirtualizationExtensions = $true; }
        }
    );
    NonNodeData = @{
        Lability = @{
            Media = (
                @{
                    ## This media is a replica of the default '2016_x64_Datacenter_Nano_EN_Eval' media
                    ## with the additional 'Microsoft-NanoServer-Compute-Package' package added.
                    Id              = '2016_x64_Datacenter_Nano_Compute_EN_Eval';
                    Filename        = '2016_x64_EN_Eval.iso';
                    Description     = 'Windows Server 2016 Datacenter Nano Hyper-V Compute Node 64bit English Evaluation';
                    Architecture    = 'x64';
                    ImageName       = 'Windows Server 2016 SERVERDATACENTERNANO';
                    MediaType       = 'ISO';
                    OperatingSystem = 'Windows';
                    Uri             = 'http://download.microsoft.com/download/1/6/F/16FA20E6-4662-482A-920B-1A45CF5AAE3C/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO';
                    Checksum        = '18A4F00A675B0338F3C7C93C4F131BEB';
                    CustomData      = @{
                        SetupComplete = 'CoreCLR';
                        PackagePath   = '\NanoServer\Packages';
                        PackageLocale = 'en-US';
                        WimPath       = '\NanoServer\NanoServer.wim';
                        Package       = @(
                            'Microsoft-NanoServer-Guest-Package',
                            'Microsoft-NanoServer-DSC-Package',
                            'Microsoft-NanoServer-Compute-Package'
                        )
                    }
                }
            )
            DSCResource = @(
                @{ Name = 'xNetworking'; RequiredVersion = '3.2.0.0'; }
                @{ Name = 'xPSDesiredStateConfiguration'; RequiredVersion = '6.0.0.0'; }
            )
        };
    };
};