A short introduction to Powershell DSC terminology
Powershell DSC A-B-C’s
View Slide
PageWindows ManagementFramework 4› Brought us Powershell v4 and Powershell DSC 1.0› Brings together tooling we can use to configurewindows servers and their environment into a centrallocation, rather than having it scattered throughoutvarious cmdlets and tools/ Copyright ©2014 by Readify Pty Ltd2
PagePowershell DSC› It is an extension to the powershell language› Use the powershell language to create and deployconfigurations to servers› Primarily server focused, but can be run on client OS’s› Ensures servers are verifiably configured as you say they are –0configuration drift, self healing› The future of server management –you shouldn’t manage theserver directly, just its configuration/ Copyright ©2014 by Readify Pty Ltd3
PageLocal Configuration Manager› The ‘server side’ of DSC› Consumes the configuration it is provided and doesthe heavy lifting› Takes the hard work out of configuring systems – youdon’t need to know all of the commands required todo the work› Set it and forget it/ Copyright ©2014 by Readify Pty Ltd4
PageConfiguration› A new powershell command type we use to build theconfiguration templates that the LCM will apply to ourservers› A configuration is just powershell code that defines theresources that make up our configuration, and whatnodes they apply to› Once a configuration is processed, produces a MOF file– an industry standard format, not proprietary./ Copyright ©2014 by Readify Pty Ltd5
PageNodes› Define the targets the configuration applies to› Won’t go into depth here since our configurations areonly applied to single servers/ Copyright ©2014 by Readify Pty Ltd6
PageResources› Are a type of powershell module, used during DSCconfiguration to do the actual configuration work› The have three methods: Get-TargetResource, Set-TargetResource and Test-TargetResources› When a configuration is applied to a server, eachresource defined runs its Test-TargetResource, and ifthis returns negative, Set-TargetResource is then run,which ‘makes it so’./ Copyright ©2014 by Readify Pty Ltd7
PageRequirements› WMF 4.0› .NET 4.5› Server 2008 R2 SP1 or higher› Windows 7 SP1 or higher› Powershell Remoting must be enabled on servers youwant to configure – on by default on Server 2012/ Copyright ©2014 by Readify Pty Ltd8
PageHonourable Mentions› Pull vs Push configuration› Configuration variables/ Copyright ©2014 by Readify Pty Ltd9