Skip to content

Instantly share code, notes, and snippets.

@gaelcolas
Created February 7, 2018 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaelcolas/f4440676ede6027f8a204d0aaac478a8 to your computer and use it in GitHub Desktop.
Save gaelcolas/f4440676ede6027f8a204d0aaac478a8 to your computer and use it in GitHub Desktop.
Configuration MyDSCConfig {
Node $ConfigurationData.AllNodes.nodename {
if($Node.roles -contains 'MyRole') {
# do stuff here, like calling DSC Resources
MyCompositeResource StuffForMyRole {
# ...
}
}
if($Node.roles -contains 'MyOtherRole') {
MyOtherResource OtherStuff {
# ...
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment