不幸的是,我在互联网上找不到我的场景的任何例子。
我有一个SMB共享的DSC服务器。我想像在https://docs.microsoft.com/de-de/powershell/dsc/pull-server/partialconfigs中一样部署部分配置
但只有HTTP DSC服务器的示例,而不是SMB。SMB DSC服务器也可以做到这一点吗?如果是这样,我能举个例子吗?
发布于 2019-06-05 15:10:42
我找到了一个例子:
[DSCLocalConfigurationManager()]
configuration PartialConfig
{
Node localhost
{
Settings
{
RefreshMode = 'Pull'
ConfigurationID = 'a5f86baf-f17f-4778-8944-9cc99ec9f992'
RebootNodeIfNeeded = $true
}
ConfigurationRepositoryShare SMBPull
{
SourcePath = '\\Server\Configurations'
Name = 'SMBPull'
}
PartialConfiguration OSConfig
{
Description = 'Configuration for the Base OS'
ConfigurationSource = '[ConfigurationRepositoryShare]SMBPull'
RefreshMode = 'Pull'
}
PartialConfiguration SQLConfig
{
Description = 'Configuration for the SQL Server'
DependsOn = '[PartialConfiguration]OSConfig'
RefreshMode = 'Push'
}
}
}https://stackoverflow.com/questions/56439399
复制相似问题