Examples/EndToEndExample/ExchangeSettings-Prod.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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
@{
    AllNodes = @(
        @{
            #region Common Settings for 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:\Certificates\DSCCertificate-Public.cer' 

            #Thumbprint of the certificate being used for encrypting credentials
            Thumbprint      = 'ef0b73be1be1344431e96ed51f475f680e5add22'

            #The product key to license Exchange 2013
            ProductKey = '12345-12345-12345-12345-12345'

            #The paths to the CSV files generated by the Server Role Requirements Calculator
            ServersCsvPath               = "C:\Demo\Calculators\Prod\Servers.csv"
            MailboxDatabasesCsvPath      = "C:\Demo\Calculators\Prod\MailboxDatabases.csv"
            MailboxDatabaseCopiesCsvPath = "C:\Demo\Calculators\Prod\MailboxDatabaseCopies.csv"

            #DiskToDBMap used by xExchAutoMountPoint specifically for Jetstress purposes
            JetstressDiskToDBMap = 'DB1,DB2,DB3,DB4','DB5,DB6,DB7,DB8','DB9,DB10,DB11,DB12','DB13,DB14,DB15,DB16','DB17,DB18,DB19,DB20','DB21,DB22,DB23,DB24','DB25,DB26,DB27,DB28','DB29,DB30,DB31,DB32','DB33,DB34,DB35,DB36','DB37,DB38,DB39,DB40'

            #The base file server UNC path that will be used for copying things like certificates, Exchange binaries, and Jetstress binaries
            FileServerBase = '\\fileserver1.contoso.com\Binaries'

            #endregion
        }

        #region Individual Node Settings
        #region DAG01 Nodes
        @{
            NodeName        = 'SRV-01-01'
            Fqdn            = 'SRV-01-01.contoso.com'
            Role            = 'FirstDAGMember'
            DAGId           = 'DAG01'
            CASId           = 'Site1CAS'
            ServerNameInCsv = 'SRV-nn-01'          
        }

        @{
            NodeName        = 'SRV-01-02'
            Fqdn            = 'SRV-01-02.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG01'
            CASId           = 'Site1CAS'
            ServerNameInCsv = 'SRV-nn-02'
        }

        @{
            NodeName        = 'SRV-01-03'
            Fqdn            = 'SRV-01-03.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG01'
            CASId           = 'Site1CAS'
            ServerNameInCsv = 'SRV-nn-03'       
        }

        @{
            NodeName        = 'SRV-01-04'
            Fqdn            = 'SRV-01-04.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG01'
            CASId           = 'Site1CAS'
            ServerNameInCsv = 'SRV-nn-04'
        }

        @{
            NodeName        = 'SRV-01-05'
            Fqdn            = 'SRV-01-05.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG01'
            CASId           = 'Site1CAS'
            ServerNameInCsv = 'SRV-nn-05'
        }

        @{
            NodeName        = 'SRV-01-06'
            Fqdn            = 'SRV-01-06.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG01'
            CASId           = 'Site1CAS'
            ServerNameInCsv = 'SRV-nn-06'
        }

        @{
            NodeName        = 'SRV-01-07'
            Fqdn            = 'SRV-01-07.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG01'
            CASId           = 'Site2CAS'
            ServerNameInCsv = 'SRV-nn-07'
        }

        @{
            NodeName        = 'SRV-01-08'
            Fqdn            = 'SRV-01-08.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG01'
            CASId           = 'Site2CAS'
            ServerNameInCsv = 'SRV-nn-08'
        }
        #endregion

        #region DAG02 Nodes
        @{
            NodeName        = 'SRV-02-01'
            Fqdn            = 'SRV-02-01.contoso.com'
            Role            = 'FirstDAGMember'
            DAGId           = 'DAG02'
            CASId           = 'Site1CAS'
            ServerNameInCsv = 'SRV-nn-01'           
        }

        @{
            NodeName        = 'SRV-02-02'
            Fqdn            = 'SRV-02-02.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG02'
            CASId           = 'Site1CAS'
            ServerNameInCsv = 'SRV-nn-02'
        }

        @{
            NodeName        = 'SRV-02-03'
            Fqdn            = 'SRV-02-03.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG02'
            CASId           = 'Site1CAS'
            ServerNameInCsv = 'SRV-nn-03'
        }

        @{
            NodeName        = 'SRV-02-04'
            Fqdn            = 'SRV-02-04.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG02'
            CASId           = 'Site1CAS'
            ServerNameInCsv = 'SRV-nn-04'
        }

        @{
            NodeName        = 'SRV-02-05'
            Fqdn            = 'SRV-02-05.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG02'
            CASId           = 'Site1CAS'
            ServerNameInCsv = 'SRV-nn-05'
        }

        @{
            NodeName        = 'SRV-02-06'
            Fqdn            = 'SRV-02-06.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG02'
            CASId           = 'Site1CAS'
            ServerNameInCsv = 'SRV-nn-06'
        }

        @{
            NodeName        = 'SRV-02-07'
            Fqdn            = 'SRV-02-07.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG02'
            CASId           = 'Site2CAS'
            ServerNameInCsv = 'SRV-nn-07'
        }

        @{
            NodeName        = 'SRV-02-08'
            Fqdn            = 'SRV-02-08.contoso.com'
            Role            = 'AdditionalDAGMember'
            DAGId           = 'DAG02'
            CASId           = 'Site2CAS'
            ServerNameInCsv = 'SRV-nn-08'
        }
        #endregion
        #endregion
    );

    #region DAG Settings
    DAG01 = @(
        @{
            DAGName                              = 'DAG01'           
            AutoDagTotalNumberOfServers          = 12
            AutoDagDatabaseCopiesPerVolume       = 4
            DatabaseAvailabilityGroupIPAddresses = '10.10.10.11','110.10.20.11'
            WitnessServer                        = 'SRV-fsw-01.contoso.com'
            DbNameReplacements                   = @{"nn" = "01"}
            Thumbprint                           = "98571B8FB9C9572F0F0D934440942709406B2122"
        }
    )

    DAG02 = @(
        @{
            DAGName                              = 'DAG02'           
            AutoDagTotalNumberOfServers          = 12
            AutoDagDatabaseCopiesPerVolume       = 4
            DatabaseAvailabilityGroupIPAddresses = '10.10.10.12','10.10.20.12'
            WitnessServer                        = 'SRV-fsw-01.contoso.com'
            DbNameReplacements                   = @{"nn" = "02"}
            Thumbprint                           = "691CFA7934AD972FADC2EF4F04E9883E48BC75E3"
        }
    )
    #endregion

    #region CAS Settings
    #Settings that will apply to all CAS
    AllCAS = @(
        @{
            ExternalNamespace = 'mail.contoso.com'
        }
    )

    #Settings that will apply only to Quincy CAS
    Site1CAS = @(
        @{
            InternalNamespace          = 'mail-site1.contoso.com'
            AutoDiscoverSiteScope      = 'Site1','Site3','Site5'
            InstantMessagingServerName = 'lync-site1.contoso.com'
            DefaultOAB                 = "Default Offline Address Book (Site1)"
        }
    );

    #Settings that will apply only to Phoenix CAS
    Site2CAS = @(
        @{
            InternalNamespace          = 'mail-site2.contoso.com'
            AutoDiscoverSiteScope      = 'Site2','Site4','Site6'
            InstantMessagingServerName = 'lync-site2.contoso.com'
            DefaultOAB                 = "Default Offline Address Book (Site2)"
        }
    );
    #endregion
}