diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-11 23:08:48 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-11 23:08:48 +0000 |
commit | 689dbf45c5455e164d74730a8df9cb7be5f544fa (patch) | |
tree | 549cafc1d9d72208999e46d3a0a87ec33678160d | |
parent | cd9ea8056a71279aab384d204d90e24236e7ae57 (diff) | |
download | puppet-689dbf45c5455e164d74730a8df9cb7be5f544fa.tar.gz puppet-689dbf45c5455e164d74730a8df9cb7be5f544fa.tar.xz puppet-689dbf45c5455e164d74730a8df9cb7be5f544fa.zip |
Adding --test option to puppetd (it enables --onetime, --no-usecacheonfailure, and --verbose), and modifying the docs a bit.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1108 980ebf18-57e1-0310-9a29-db15c13687c0
-rwxr-xr-x | bin/puppetd | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/bin/puppetd b/bin/puppetd index 2fabccd69..e2893b9d0 100755 --- a/bin/puppetd +++ b/bin/puppetd @@ -10,7 +10,8 @@ # # puppetd [-h|--help] [-V|--version] [-d|--debug] [-v|--verbose] # [-l|--logdest <syslog|<file>|console>] [--fqdn <host name>] -# [-o|--onetime] [-w|--waitforcert <seconds>] [--centrallogging] +# [-o|--onetime] [-w|--waitforcert <seconds>] [-t|--test] +# [--disable] [--enable] # # = Description # @@ -25,6 +26,10 @@ # Once the client has a signed certificate, it will retrieve its configuration # and apply it. # +# The vast majority of options are shared between all Puppet executables and +# are documented completely at +# http://reductivelabs.com/projects/puppet/documentation. +# # = Options # # Note that any configuration parameter that's valid in the configuration file @@ -33,10 +38,6 @@ # # See the configuration file for the full list of acceptable parameters. # -# centrallogging:: -# Send all produced logs to the central puppetmasterd system. This currently -# results in a significant slowdown, so it is not recommended. -# # disable:: # Disable working on the local system. This puts a lock file in place, # causing +puppetd+ not to work on the system until the lock file is removed. @@ -44,6 +45,9 @@ # configuration to override the local state until everything is tested and # committed. # +# +puppetd+ uses the same lock file while it is running, so no more than one +# +puppetd+ process is working at a time. +# # +puppetd+ exits after executing this. # # debug:: @@ -51,7 +55,8 @@ # # enable:: # Enable working on the local system. This removes any lock file, causing -# +puppetd+ to start managing the local system again. +# +puppetd+ to start managing the local system again (although it will continue +# to use its normal scheduling, so it might not start for another half hour). # # +puppetd+ exits after executing this. # @@ -72,6 +77,10 @@ # Run the configuration once, rather than as a long-running daemon. This is # useful for interactively running puppetd. # +# test:: +# Enable the most common options used for testing. These are +onetime+, +# +verbose+, and +no-usecacheonfailure+. +# # verbose:: # Turn on verbose reporting. # @@ -117,6 +126,7 @@ options = [ [ "--help", "-h", GetoptLong::NO_ARGUMENT ], [ "--logdest", "-l", GetoptLong::REQUIRED_ARGUMENT ], [ "--onetime", "-o", GetoptLong::NO_ARGUMENT ], + [ "--test", "-t", GetoptLong::NO_ARGUMENT ], [ "--verbose", "-v", GetoptLong::NO_ARGUMENT ], [ "--version", "-V", GetoptLong::NO_ARGUMENT ], [ "--waitforcert", "-w", GetoptLong::REQUIRED_ARGUMENT ] @@ -151,6 +161,14 @@ begin disable = true when "--enable" enable = true + when "--test" + # Enable all of the most common test options. + Puppet.config.handlearg("--no-usecacheonfailure") + onetime = true + unless Puppet::Log.level == :debug + Puppet::Log.level = :info + end + Puppet::Log.newdestination(:console) when "--centrallogging" centrallogs = true when "--help" |