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

Dry testing your manifest

Another useful command-line switch for puppet apply is the --noop option.
It instructs Puppet to refrain from taking any action on unsynced resources.
Instead, you only get a log output that indicates what will change without the switch. This is useful in determining whether a manifest would possibly break anything on your system:

root@puppetmaster:~# puppet apply puppet_service.pp --noop
Notice: Compiled catalog for puppetmaster.example.net in environment production in 0.63 seconds
Notice: /Stage[main]/Main/Service[puppet]/enable: current_value true, should be false (noop)
Notice: Class[Main]: Would have triggered 'refresh' from 1 events
Notice: Stage[main]: Would have triggered 'refresh' from 1 events
Notice: Applied catalog in 0.06 seconds
The output format is the same as before, with a ( noop) marker trailing the notice about the sync action. This log can be considered a preview of what will happen when the manifest is applied without the --noop switch.

The additional notices about triggered refreshes will be described later, and can be ignored for the moment. You will have a better understanding of their significance after finishing this chapter and Chapter 4, Combining Resources in Classes and Defined Types.

主站蜘蛛池模板: 岗巴县| 临夏市| 新巴尔虎左旗| 织金县| 襄汾县| 双峰县| 苗栗县| 马鞍山市| 牟定县| 定边县| 峨边| 淮南市| 蓬溪县| 固阳县| 右玉县| 拜城县| 清水河县| 通河县| 柏乡县| 同心县| 沙坪坝区| 四会市| 武夷山市| 石林| 新丰县| 绥中县| 桐梓县| 东光县| 宁陕县| 盘锦市| 泽州县| 明光市| 扶绥县| 麦盖提县| 红原县| 平乡县| 余干县| 志丹县| 吉林省| 克东县| 如皋市|