- 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
}
}
}
推薦閱讀
- R語言數據可視化之美:專業圖表繪制指南
- 新手學Visual C# 2008程序設計
- SQL基礎教程(視頻教學版)
- Creating Mobile Apps with jQuery Mobile(Second Edition)
- 新一代SDN:VMware NSX 網絡原理與實踐
- 實戰Java高并發程序設計(第2版)
- 超簡單:用Python讓Excel飛起來(實戰150例)
- 少兒編程輕松學(全2冊)
- Java程序設計入門(第2版)
- Practical Time Series Analysis
- HTML 5與CSS 3權威指南(第4版·上冊)
- 深度剖析ApacheDubbo核心技術內幕
- 亮劍C#項目開發案例導航
- Java入門經典
- D Cookbook