- Learning PowerShell DSC(Second Edition)
- James Pogran
- 60字
- 2021-07-02 18:31:26
Hardcoded data
Configuration data can be hardcoded inside DSC configuration files, but this is not optimal in most cases. You will mostly use this for static sets of information or to reduce redundant code, as shown in the following code snippet:
configuration FooBar
{
$features = @('Web-Server', 'Web-Asp-Net45')
Foreach($feature in $features){
WindowsFeature "Install$($feature)"
{
Name = $feature
}
}
}
推薦閱讀
- Hyper-V 2016 Best Practices
- Apache ZooKeeper Essentials
- 潮流:UI設(shè)計必修課
- Building a Recommendation Engine with Scala
- Apex Design Patterns
- C#程序設(shè)計
- KnockoutJS Starter
- HTML5從入門到精通 (第2版)
- PHP從入門到精通(第4版)(軟件開發(fā)視頻大講堂)
- 智能搜索和推薦系統(tǒng):原理、算法與應(yīng)用
- Everyday Data Structures
- Maker基地嘉年華:玩轉(zhuǎn)樂動魔盒學(xué)Scratch
- LabVIEW數(shù)據(jù)采集
- 程序員必會的40種算法
- Learning Swift