Last active
November 5, 2017 22:44
-
-
Save gaelcolas/4481593e2548b50460637700eaa14ddb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#Assuming you already have this hashtable | |
$MyHash = @{ | |
Ensure = 'Present' | |
Name = 'Putty' | |
Version = 'Latest' | |
ChocolateyOptions = @{ source = 'https://chocolatey.org/api/v2/' } | |
} | |
Configuration MyDscConfig { | |
$Allnodes.nodename { | |
ChocolateyPackage Putty { | |
Ensure = $MyHash['Ensure'] | |
Name = $MyHash['Name'] | |
Version = $MyHash['Version'] | |
ChocolateyOptions = $MyHash['ChocolateyOptions'] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment