作为部署的一部分,您如何自动分发 Desired State Configuration 自定义资源? [英] How do you automatically distribute Desired State Configuration custom resources as part of a deployment?
问题描述
我正在努力利用 Microsoft 的 DSC Resource Kit(特别是 XWebAdministration,至少对于初学者而言).我对 DSC 比较熟悉,所以不用担心脚本的实际功能......它可以做它应该做的,或者至少我很确定它可以.
I'm working on leveraging Microsoft's DSC Resource Kit (specifically, XWebAdministration, at least for starters). I'm relatively familiar with DSC, so no worries on the script's actual functionality... it does what it's supposed to, or at least I'm pretty sure it does.
问题是,当我从我的编排盒执行脚本时,我定位的服务器返回此错误:
The problem is that when I execute the script from my orchestration box, the servers I'm targeting return this error:
The PowerShell provider xWebAdministration does not exist at the PowerShell module
path nor is it registered as a WMI provider.
+ CategoryInfo : InvalidOperation: (root/Microsoft/...gurationManager
:String) [], CimException
+ FullyQualifiedErrorId : ModuleNameNotFound
+ PSComputerName : [redacted]
发生这种情况的原因很明显:我没有在这些机器上安装 xWebAdministration
模块.问题是:作为部署的一部分自动分发自定义资源的正确方法是什么?在数十个或数百个盒子上手动安装自定义资源很麻烦,所以必须有一种方法,我只是在任何地方都没有看到有关该主题的任何文档.
The reason why it's happening is obvious: I didn't install the xWebAdministration
module on those machines. The question is: What's the proper method for automatically distributing custom resources as part of a deployment? It's onerous to manually install custom resources on dozens or hundreds of boxes, so there has to be a way, I just don't see any documentation on the subject anywhere.
推荐答案
关注以下内容
http://www.powershellgallery.com/
PowerShell 在 powershell v5 中获取
PowerShellGet in powershell v5
https://github.com/OneGet/oneget
还有关于这些http://www.systemcentercentral.com/day-14-finding-installing-modules-dsc-resources-powershellget/的一些信息/www.systemcentercentral.com/day-14-finding-installing-modules-dsc-resources-powershellget/和 安装 PowerShell 模块
这篇关于作为部署的一部分,您如何自动分发 Desired State Configuration 自定义资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!