diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-28 16:58:48 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-28 16:58:48 +0000 |
commit | 17c59f8d83145c728bca3636dfa7c42f66967169 (patch) | |
tree | e02bb0645a9542697c0e5adb5a35a3a691d81c2f /lib | |
parent | ebc4dd231e4970e9d3ccbbe57d0df9f38cf4c1aa (diff) | |
download | puppet-17c59f8d83145c728bca3636dfa7c42f66967169.tar.gz puppet-17c59f8d83145c728bca3636dfa7c42f66967169.tar.xz puppet-17c59f8d83145c728bca3636dfa7c42f66967169.zip |
Adding "ignorecache" option to always force a recompile of the configuration
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2245 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/network/client/master.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/puppet/network/client/master.rb b/lib/puppet/network/client/master.rb index 08a37d9b6..ebeddd281 100644 --- a/lib/puppet/network/client/master.rb +++ b/lib/puppet/network/client/master.rb @@ -18,6 +18,12 @@ class Puppet::Network::Client::MasterClient < Puppet::Network::Client new configurations, where you want to fix the broken configuration rather than reverting to a known-good one." ], + :ignorecache => [false, + "Ignore cache and always recompile the configuration. This is + useful for testing new configurations, where the local cache may in + fact be stale even if the timestamps are up to date - if the facts + change or if the server changes." + ], :downcasefacts => [false, "Whether facts should be made all lowercase when sent to the server."] ) @@ -196,9 +202,8 @@ class Puppet::Network::Client::MasterClient < Puppet::Network::Client # Check whether our configuration is up to date def fresh? - unless self.compile_time - return false - end + return false if Puppet[:ignorecache] + return false unless self.compile_time # We're willing to give a 2 second drift if @driver.freshness - @compile_time.to_i < 1 |