Netherlands: Software

Introductie Windows Server 2016

Issue link:

Contents of this Issue


Page 153 of 173

144 C H A P T E R 7 | Systems management To make partial configuration work in Windows Server 2016 Technical Preview, complete the following steps: 1. Create the pull server. 2. Configure the LCM Meta Configuration of servers on the network. 3. Author the configurations. 4. Deploy the configurations on the pull server. We will look into the details of each of these steps, except for the creation of the pull server because that process is the same as for DSC v1. Setting up the LCM Meta Configuration To prepare a server's LCM Meta Configuration, you must set the following: RefreshMode with the value of Pull. ConfigurationID with the value of a valid GUID, representing a configuration of a pull server. (This GUID is required on a pull server for naming the configuration files.) ConfigurationMode with the value of ApplyandAutoCorrect to keep the server in the expected state. Multiple WebConfigurationRepository resource instances, each representing a pull server. Multiple PartialConfiguration resource instances, each representing a configuration on a pull server. To demonstrate partial configuration, the following example features an environment with two pull servers (DemoServerWin10 and ServerWin10). There are also two configurations, each deployed to one of the pull servers. The LCM of a destination machine is configured with these two pull servers and configurations. All of the steps for partial configuration are done on these servers. The LCM configuration applied to the server named DemoServerWin is shown in the following: [DSCLocalConfigurationManager()] Configuration ChangeLCMProperties { Node DemoServerWin { Settings { RebootNodeIfNeeded = $true RefreshMode = "Pull" ConfigurationMode = "ApplyAndAutoCorrect" ConfigurationID = "fcd03a8d-5a64-4982-92b3-5c89680add39" } ConfigurationRepositoryWeb PullServer1 { Name = "PullServer1" ServerURL = "http://serverwin10:9000/PSDSCPullServer.svc/" AllowUnsecureConnection = $true } ConfigurationRepositoryWeb PullServer2 { Name = "PullServer2" ServerURL = "http://demoserverwin10:8080/PSDSCPullServer.svc/" AllowUnsecureConnection = $true } PartialConfiguration IISInstall { Description = 'Configuration for IIS Web Server' ConfigurationSource = '[ConfigurationRepositoryWeb]PullServer1'

Articles in this issue

Archives of this issue

view archives of Netherlands: Software - Introductie Windows Server 2016