- Learning PowerShell DSC(Second Edition)
- James Pogran
- 286字
- 2021-07-02 18:31:19
The how
The DSC language extensions, cmdlets, and resources provide a standardized way of testing whether the expected state is present on a target system.
This allows the different aspects of the actual execution of configuring a system to be codified away from the information, deciding what settings to change or software to install. While the what dealt with writing down the expected state, the how is concerned with how to make it happen that way. Or, as Captain Picard would say, how to make it so.
This separation is important because it is expected that the list of things to do on a target computer will change, but it is not expected that how to execute that setting will change frequently. For example, there will be many types of files that you will create on many filesystems, but there are only a few ways to create these files. By separating the listing of the what, it allows the how to reduce variation by employing the idempotent DSC resources, an important part of a DevOps workflow.
To summarize the preceding content, we can say:
- The DSC DSL defines a standardized way of describing the expected configuration of a target system, whether that is one system or several thousand systems
- The DSC set of language extensions, cmdlets, and resources provide a standardized way of testing whether the expected state is present on the target system(s)
- The DSC engine provides a structured way of executing this expected state in an idempotent manner
We have seen the word idempotent in several places in this chapter so far, yet we haven't really defined it or covered why it is important. Let's clarify what exactly idempotence means now.
- DBA攻堅(jiān)指南:左手Oracle,右手MySQL
- Java異步編程實(shí)戰(zhàn)
- arc42 by Example
- Java EE 7 Development with NetBeans 8
- Mastering ROS for Robotics Programming
- C語(yǔ)言程序設(shè)計(jì)
- R用戶Python學(xué)習(xí)指南:數(shù)據(jù)科學(xué)方法
- Julia for Data Science
- GameMaker Essentials
- 實(shí)戰(zhàn)Java高并發(fā)程序設(shè)計(jì)(第2版)
- SQL Server 2008中文版項(xiàng)目教程(第3版)
- Distributed Computing in Java 9
- Visual Basic 程序設(shè)計(jì)實(shí)踐教程
- Mastering SciPy
- Monitoring Docker