- Puppet 2.7 Cookbook
- John Arundel
- 215字
- 2021-04-02 18:20:00
Detecting compilation errors
"My mechanic told me, 'I couldn't repair your brakes, so I made your horn louder.'"—Steven Wright
Usually, when there's a problem, we'll want to stop and fix it before continuing. However, when running in daemon mode, Puppet will ignore any compilation errors in the manifest and just apply the last known working version from its cache. This behavior is governed by the usecacheonfailure
config setting, and its default setting, true
:
# puppet --genconfig |grep usecacheonfailure # usecacheonfailure = true
It's worth noting that when you apply manifests by hand using puppet agent --test
, this doesn't happen: Puppet will complain and refuse to do anything if there is an error in the manifest. That's because the --test
switch is shorthand for the following options:
# puppet agent --onetime --verbose --ignorecache --no-daemonize --no-usecacheonfailure
Because usecacheonfailure
is on when Puppet runs as a daemon, sometimes you won't notice mistakes in a manifest for a while, as Puppet keeps on silently running an old version of the manifest instead of complaining.
How to do it…
If you want to change this behavior, set the following value in puppet.conf
:
usecacheonfailure = false
How it works…
With this option set, Puppet will immediately complain about errors and refuse to run until they are corrected.
- AJAX and PHP: Building Modern Web Applications 2nd Edition
- 中文版3ds Max 2024完全自學(xué)教程
- Drools規(guī)則引擎技術(shù)指南
- 中文版Illustrator CC基礎(chǔ)培訓(xùn)教程(移動(dòng)學(xué)習(xí)版)
- ASP.NET MVC 1.0 Quickly
- Photoshop數(shù)碼攝影后期處理技法從入門(mén)到精通
- TopSolid Wood軟件設(shè)計(jì)技術(shù)與應(yīng)用
- Configuring IPCop Firewalls: Closing Borders with Open Source
- Photoshop海報(bào)設(shè)計(jì)技巧與實(shí)戰(zhàn)
- Oracle Application Express Forms Converter
- AutoCAD 2020與天正建筑T20 V6.0建筑設(shè)計(jì)從入門(mén)到精通
- Photoshop新媒體美工設(shè)計(jì)(視頻指導(dǎo)版)
- Maya Paint Effect 特效應(yīng)用手冊(cè)
- Drupal 6 Site Blueprints
- Excel+Python:飛速搞定數(shù)據(jù)分析與處理