Examples/ConfigureNamespaces/InternetFacingSite/InternetFacingSite-Config.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 = @(
        #Settings under 'NodeName = *' apply to all nodes.
        @{
            NodeName        = '*'

            #CertificateFile and Thumbprint are used for securing credentials. See:
            #http://blogs.msdn.com/b/powershell/archive/2014/01/31/want-to-secure-credentials-in-windows-powershell-desired-state-configuration.aspx
            
            #The location on the compiling machine of the public key export of the certfificate which will be used to encrypt credentials
            CertificateFile = 'C:\publickey.cer' 

            #Thumbprint of the certificate being used for encrypting credentials
            Thumbprint      = '651bc10c5deade112744256edfd87503e30691eb' 
        }

        #Individual target nodes are defined next
        @{
            NodeName = 'e15-1'
            CASID    = 'Site1CAS'
        }

        @{
            NodeName = 'e15-2'
            CASID    = 'Site2CAS'
        }
    );

    #CAS settings that are unique per site will go in separate hash table entries.
    Site1CAS = @(
        @{
            ExternalUrlActiveSync   = "https://mail.mikelab.local/Microsoft-Server-ActiveSync" 
            ExternalUrlECP          = "https://mail.mikelab.local/ecp"
            ExternalUrlMAPI         = "https://mail.mikelab.local/mapi"
            ExternalUrlOAB          = "https://mail.mikelab.local/oab"
            ExternalUrlOA           = "mail.mikelab.local"
            ExternalUrlOWA          = "https://mail.mikelab.local/owa"
            ExternalUrlEWS          = "https://mail.mikelab.local/ews/exchange.asmx" 

            InternalNLBFqdn         = 'mail-site1.mikelab.local'
            AutoDiscoverSiteScope   = 'Site1'
        }
    );

    Site2CAS = @(
        @{
            ExternalUrlActiveSync   = ""
            ExternalUrlECP          = ""
            ExternalUrlMAPI         = ""
            ExternalUrlOAB          = ""
            ExternalUrlOA           = ""
            ExternalUrlOWA          = ""
            ExternalUrlEWS          = ""

            InternalNLBFqdn         = 'mail-site2.mikelab.local'
            AutoDiscoverSiteScope   = 'Site2'
        }
    );
}