Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created December 18, 2015 20:05
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 guitarrapc/60ae6268e58d705d5a28 to your computer and use it in GitHub Desktop.
Save guitarrapc/60ae6268e58d705d5a28 to your computer and use it in GitHub Desktop.
[DSCLocalConfigurationManager()]
configuration SQLServerDSCSettings
{
Node localhost
{
Settings
{
ConfigurationModeFrequencyMins = 30
}
ConfigurationRepositoryWeb OSConfigServer
{
ServerURL = "https://corp.contoso.com/OSConfigServer/PSDSCPullServer.svc"
}
ConfigurationRepositoryWeb SQLConfigServer
{
ServerURL = "https://corp.contoso.com/SQLConfigServer/PSDSCPullServer.svc"
}
PartialConfiguration OSConfig
{
Description = 'Configuration for the Base OS'
ExclusiveResources = 'PSDesiredStateConfiguration\*'
ConfigurationSource = '[ConfigurationRepositoryWeb]OSConfigServer'
}
PartialConfiguration SQLConfig
{
Description = 'Configuration for the SQL Server'
ConfigurationSource = '[ConfigurationRepositoryWeb]SQLConfigServer'
DependsOn = '[PartialConfiguration]OSConfig'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment