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

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.

主站蜘蛛池模板: 怀化市| 思茅市| 北票市| 永泰县| 托克托县| 彰武县| 曲靖市| 孝感市| 石嘴山市| 佛冈县| 满洲里市| 汕尾市| 青铜峡市| 松原市| 泗水县| 青河县| 吉林市| 双峰县| 丹棱县| 蓝山县| 青神县| 五华县| 康马县| 德格县| 仁寿县| 威远县| 台南市| 平乡县| 平定县| 太和县| 搜索| 靖州| 广南县| 开平市| 南投县| 东源县| 柏乡县| 汉阴县| 万宁市| 丽水市| 马边|