Created
September 14, 2015 08:25
-
-
Save kerslake/a6f43ed7a0b7dff8ff52 to your computer and use it in GitHub Desktop.
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
Configuration FileResourceDemo | |
{ | |
Node "localhost" | |
{ | |
File CreateFile { | |
DestinationPath = 'C:\Temp\Test.txt' | |
Ensure = "Present" | |
Contents = 'Hello World!' | |
} | |
Log AfterDirectoryCopy | |
{ | |
# The message below gets written to the Microsoft-Windows-Desired State Configuration/Analytic log | |
Message = "Finished running the file resource with ID CreateFile" | |
DependsOn = "[File]CreateFile" # This means run "CreateFile" first. | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment