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

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.

主站蜘蛛池模板: 徐闻县| 广平县| 宜阳县| 东平县| 巧家县| 娱乐| 金寨县| 修文县| 乌鲁木齐县| 和硕县| 满城县| 任丘市| 法库县| 介休市| 寻乌县| 蒲江县| 正蓝旗| 临江市| 永清县| 嫩江县| 河曲县| 奎屯市| 金沙县| 乐山市| 三门峡市| 涟水县| 根河市| 米林县| 遂平县| 内丘县| 蒙阴县| 安义县| 沙湾县| 霞浦县| 西畴县| 通河县| 云阳县| 奈曼旗| 长沙市| 景泰县| 德庆县|