[英]Partial DSC configuration for SMB
Unfortunately I can't find any examples on the internet for my scenario. 不幸的是,我无法在互联网上找到任何关于我的场景的例子。
I got a DSC server with a SMB share. 我有一个拥有SMB共享的DSC服务器。 I want to deploy partial configs like in https://docs.microsoft.com/de-de/powershell/dsc/pull-server/partialconfigs
我想部署部分配置,如https://docs.microsoft.com/de-de/powershell/dsc/pull-server/partialconfigs
But there are only examples for a HTTP DSC servers not SMB. 但是只有HTTP DSC服务器而不是SMB的例子。 Is this also possible with an SMB DSC server?
SMB DSC服务器也可以吗? If so, could I have an example?
如果是这样,我可以举个例子吗?
I have found an example: 我找到了一个例子:
[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'
}
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.