官术网_书友最值得收藏!

The authoring phase

You begin with DSC by writing a configuration script in PowerShell. The script itself doesn't actually do anything. You can run the script interactively all you want; it won't change a thing. Since the configuration script is the DSL we were talking about earlier, it's only a list of things to do, not the things that actually execute the list. Because there can only be one MOF per target host and each configuration script is translated to an MOF, this means there is usually only one configuration script you write, which handles all the variances in your environment. This sounds like it will get complicated and difficult to manage quickly, but there are DSC patterns to follow in order to manage this. We will cover these in Chapter 3, DSC Configuration Files.

The next step is to translate the configuration script to an MOF file. The translation, or compiling, happens only once—when you deploy the MOF file to the target node or to the DSC pull server. The configuration script is often kept in a version control system and only compiles and deploys the MOF file when the configuration script changes.

主站蜘蛛池模板: 宜兰县| 原阳县| 盐边县| 江孜县| 乌拉特后旗| 麻城市| 社会| 双辽市| 庐江县| 石柱| 曲阳县| 手机| 临邑县| 贺兰县| 贡觉县| 铁力市| 丰镇市| 高邑县| 乌鲁木齐县| 鹤峰县| 文登市| 额敏县| 昌乐县| 茶陵县| 开平市| 新民市| 永新县| 洛阳市| 仁布县| 兰溪市| 新河县| 恩施市| 贵德县| 来凤县| 克拉玛依市| 彰武县| 北辰区| 山东| 鸡西市| 黔南| 海南省|