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

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.

主站蜘蛛池模板: 鲁山县| 盐边县| 酉阳| 房山区| 彝良县| 绥滨县| 江油市| 昌图县| 隆子县| 永康市| 平塘县| 乌审旗| 赣州市| 项城市| 城市| 远安县| 越西县| 巩留县| 读书| 苍南县| 绥宁县| 龙海市| 赣州市| 方正县| 彝良县| 商城县| 准格尔旗| 西昌市| 博湖县| 水富县| 石城县| 甘谷县| 华宁县| 平邑县| 江都市| 江华| 康乐县| 武义县| 延川县| 鹤峰县| 东台市|