- Learning PowerShell DSC(Second Edition)
- James Pogran
- 303字
- 2021-07-02 18:31:25
Staging
After authoring the configuration files and compiling them into MOF files, the next step is the staging phase. This phase slightly varies if you are using a push or pull model of deployment.
When using the push model, the MOF files are pushed to the target node and executed immediately. There isn't much staging with push, as the whole point is to be interactive and immediate. In PowerShell V4, if a target node is managed by a DSC pull server, you cannot push the MOF file to it using the Start-DscConfiguration cmdlet. In PowerShell V4, a target node is either managed by a DSC pull server or not. This distinction is somewhat blurred in PowerShell V5, as a new DSC mode allows a target node to both be managed by a DSC pull server and have MOF files pushed to it.
When using the pull model, the MOF files are pushed to the DSC pull server by the user and then pulled down to target nodes by DSC agents. Because the local LCMs on each target node pull the MOF when they hit the correct interval, MOF files are not immediately processed and thus are staged. They are processed only when the LCM pulls the MOF from the pull server. When attached to a pull server, the LCM performs other actions to stage or prepare the target node. The LCM will request all the required DSC resources from the pull server in order to execute the MOF in the next phase.
Whatever process the MOF file uses to get to the target node, the LCM processes the MOF file by naming it the pending.mof file and placing it inside the $env:systemRoot/system32/configuration path. If there was an existing MOF file executed earlier, it takes that file and renames it the previous.mof file.
- 基于粒計算模型的圖像處理
- 深度學習:算法入門與Keras編程實踐
- Modular Programming in Java 9
- Learning Laravel's Eloquent
- 智能搜索和推薦系統(tǒng):原理、算法與應用
- 物聯(lián)網(wǎng)系統(tǒng)架構(gòu)設(shè)計與邊緣計算(原書第2版)
- Instant Automapper
- DB2SQL性能調(diào)優(yōu)秘笈
- Mastering OAuth 2.0
- MongoDB Cookbook
- C/C++代碼調(diào)試的藝術(shù)
- 劍指大數(shù)據(jù):企業(yè)級電商數(shù)據(jù)倉庫項目實戰(zhàn)(精華版)
- Web前端開發(fā)全程實戰(zhàn):HTML5+CSS3+JavaScript+jQuery+Bootstrap
- Visual FoxPro程序設(shè)計
- TensorFlow 2.0深度學習應用實踐