Created
December 6, 2014 20:32
-
-
Save guitarrapc/8a1aaa87559a329ebd77 to your computer and use it in GitHub Desktop.
PowerShell DSC Advent Calendar 2014 : Day 3 Chef と PowerShell DSC のこれまでと用語まとめ http://tech.guitarrapc.com/entry/2014/12/03/064417 : https://github.com/guitarrapc/DSCSample/blob/master/PowerShellDSCAdventCalendar/2014/Day3_HistoryOfChefAndPowerShellDSC_Words/ConfigurationSampleAndMOF.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuraion sample | |
Configuration WebServer | |
{ | |
WindowsFeature IIS | |
{ | |
Ensure = "Present" | |
Name = "Web-Server" | |
IncludeAllSubFeature = $false | |
LogPath = "C:\Logs\DSC\WindowsFeature\Web-Server.txt" | |
} | |
} | |
# MOF compiled from Configuration | |
instance of MSFT_RoleResource as $MSFT_RoleResource1ref | |
{ | |
ResourceID = "[WindowsFeature]IIS::[WebServer]WebServer"; | |
LogPath = "C:\\Logs\\DSC\\WindowsFeature\\Web-Server.txt"; | |
IncludeAllSubFeature = False; | |
Ensure = "Present"; | |
SourceInfo = "C:\\WebServer.ps1::3::5::WindowsFeature"; | |
Name = "Web-Server"; | |
ModuleName = "PSDesiredStateConfiguration"; | |
ModuleVersion = "1.0"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment