summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-01-31 12:33:57 +1100
committerJames Turnbull <james@lovedthanlost.net>2009-01-31 12:33:57 +1100
commit8d0086b3cb877765857b7ff0dee454b14417430a (patch)
tree95db285df80c20d1ddf48f782ea8ab1dc9ff2024
parenta065aeb567896be04ebac978a380e6becf4518eb (diff)
downloadpuppet-8d0086b3cb877765857b7ff0dee454b14417430a.tar.gz
puppet-8d0086b3cb877765857b7ff0dee454b14417430a.tar.xz
puppet-8d0086b3cb877765857b7ff0dee454b14417430a.zip
Fixed #1916 - Added environment option to puppetd
-rw-r--r--CHANGELOG2
-rwxr-xr-xbin/puppetd16
2 files changed, 15 insertions, 3 deletions
diff --git a/CHANGELOG b/CHANGELOG
index cd206a81f..a5ff124c3 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
0.25.0
+ Fixed #1916 - Added environment option to puppetd
+
Fixed #1910 - Updated logcheck regex
Fixed #1879 - Added to tidy documentation
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 ],