diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-01-31 12:33:57 +1100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-01-31 12:33:57 +1100 |
commit | 8d0086b3cb877765857b7ff0dee454b14417430a (patch) | |
tree | 95db285df80c20d1ddf48f782ea8ab1dc9ff2024 /bin | |
parent | a065aeb567896be04ebac978a380e6becf4518eb (diff) | |
download | puppet-8d0086b3cb877765857b7ff0dee454b14417430a.tar.gz puppet-8d0086b3cb877765857b7ff0dee454b14417430a.tar.xz puppet-8d0086b3cb877765857b7ff0dee454b14417430a.zip |
Fixed #1916 - Added environment option to puppetd
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/puppetd | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/bin/puppetd b/bin/puppetd index ecea2d894..29b0e7249 100755 --- a/bin/puppetd +++ b/bin/puppetd @@ -9,9 +9,10 @@ # = Usage # # puppetd [-D|--daemonize|--no-daemonize] [-d|--debug] [--disable] [--enable] -# [-h|--help] [--fqdn <host name>] [-l|--logdest syslog|<file>|console] -# [-o|--onetime] [--serve <handler>] [-t|--test] [--noop] -# [-V|--version] [-v|--verbose] [-w|--waitforcert <seconds>] +# [-e|--environment=<environment>] [-h|--help] [--fqdn <host name>] +# [-l|--logdest syslog|<file>|console] [-o|--onetime] +# [--serve <handler>] [-t|--test] [--noop] [-V|--version] +# [-v|--verbose] [-w|--waitforcert <seconds>] # # = Description # @@ -90,6 +91,14 @@ # # +puppetd+ exits after executing this. # +# environment:: +# Specify an environment to run. This enables you to run a different +# set of manifests, modules, templates etc. for a different +# environment than is default. For example, the default environment +# is set to 'production', and so using this option you could test +# your new development module by specifying that the 'development' +# environment should be run, like so: puppetd --test --environment=development +# # fqdn:: # Set the fully-qualified domain name of the client. This is only used for # certificate purposes, but can be used to override the discovered hostname. @@ -170,6 +179,7 @@ options = [ [ "--disable", GetoptLong::NO_ARGUMENT ], [ "--debug", "-d", GetoptLong::NO_ARGUMENT ], [ "--enable", GetoptLong::NO_ARGUMENT ], + [ "--environment=<environment>", GetoptLong::REQUIRED_ARGUMENT ], [ "--fqdn", "-f", GetoptLong::REQUIRED_ARGUMENT ], [ "--help", "-h", GetoptLong::NO_ARGUMENT ], [ "--logdest", "-l", GetoptLong::REQUIRED_ARGUMENT ], |