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

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.

主站蜘蛛池模板: 安龙县| 竹北市| 德格县| 崇义县| 南和县| 大石桥市| 库车县| 手机| 玉林市| 闽侯县| 北碚区| 迁安市| 伽师县| 白河县| 乌兰察布市| 平舆县| 临清市| 肥东县| 布尔津县| 新巴尔虎左旗| 黄陵县| 吴川市| 铜川市| 咸丰县| 沈丘县| 泰州市| 皮山县| 志丹县| 大余县| 深水埗区| 巢湖市| 韩城市| 章丘市| 罗甸县| 青铜峡市| 蒲城县| 盐津县| 南靖县| 东兴市| 全椒县| 剑阁县|