summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-29 20:32:17 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-29 20:32:17 +0000
commite47a98769380b37ec1ee65cf922ce2cc7aa7b88a (patch)
treea973a2e6346e9e08b2b4684e01f61e5a196e9e78 /bin
parentea9189604a5f8475a87ec03415a1a47681eba0fb (diff)
First commit of complete reporting support. The only existing report at this point is the tagmail report. I expect reporting to get significantly modified from here, but it is a good start.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1339 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'bin')
-rwxr-xr-xbin/puppetmasterd21
1 files changed, 19 insertions, 2 deletions
diff --git a/bin/puppetmasterd b/bin/puppetmasterd
index 3df24aa7d..f254682f0 100755
--- a/bin/puppetmasterd
+++ b/bin/puppetmasterd
@@ -50,6 +50,9 @@
# Do not use individual node designations; each node will receive the result
# of evaluating the entire configuration.
#
+# noreports::
+# Do not start the reports server.
+#
# verbose::
# Enable verbosity. Causes the daemon not to go into the background.
#
@@ -86,6 +89,7 @@ options = [
[ "--logdest", "-l", GetoptLong::REQUIRED_ARGUMENT ],
[ "--noca", GetoptLong::NO_ARGUMENT ],
[ "--nobucket", GetoptLong::NO_ARGUMENT ],
+ [ "--noreports", GetoptLong::NO_ARGUMENT ],
[ "--nonodes", GetoptLong::NO_ARGUMENT ],
[ "--verbose", "-v", GetoptLong::NO_ARGUMENT ],
[ "--version", "-V", GetoptLong::NO_ARGUMENT ]
@@ -107,13 +111,16 @@ end
master = {}
ca = {}
+report = {}
fs = {}
bucket = {}
args = {}
options = {
:haveca => true,
+ :havereport => true,
:havebucket => true,
+ :havemaster => true,
:setdest => false,
:verbose => false,
:debug => false
@@ -133,8 +140,12 @@ begin
puts "No help available unless you have RDoc::usage installed"
exit
end
+ when "--noreports"
+ options[:havereport] = false
when "--noca"
options[:haveca] = false
+ when "--nomaster"
+ options[:havemaster] = false
when "--nobucket"
options[:havebucket] = false
when "--nonodes"
@@ -204,11 +215,17 @@ unless options.include?(:daemonize)
end
handlers = {
- :Master => master,
:Status => {},
- :Logger => {}
}
+if options[:havemaster]
+ handlers[:Master] = master
+end
+
+if options[:havereport]
+ handlers[:Report] = report
+end
+
if options[:haveca]
handlers[:CA] = ca
end