@@ -148,7 +148,12 @@ module Puppet
148
148
"The HTTP proxy port to use for outgoing connections" ] ,
149
149
:http_enable_post_connection_check => [ true ,
150
150
"Boolean; wheter or not puppetd should validate the server
151
- SSL certificate against the request hostname." ]
151
+ SSL certificate against the request hostname." ] ,
152
+ :filetimeout => [ 15 ,
153
+ "The minimum time to wait (in seconds) between checking for updates in
154
+ configuration files. This timeout determines how quickly Puppet checks whether
155
+ a file (such as manifests or templates) has changed on disk."
156
+ ]
152
157
)
153
158
154
159
hostname = Facter [ "hostname" ] . value
@@ -380,7 +385,31 @@ module Puppet
380
385
:yamldir => { :default => "$vardir/yaml" , :owner => "$user" , :group => "$user" , :mode => "750" ,
381
386
:desc => "The directory in which YAML data is stored, usually in a subdirectory." } ,
382
387
:clientyamldir => { :default => "$vardir/client_yaml" , :mode => "750" ,
383
- :desc => "The directory in which client-side YAML data is stored." }
388
+ :desc => "The directory in which client-side YAML data is stored." } ,
389
+ :reports => [ "store" ,
390
+ "The list of reports to generate. All reports are looked for
391
+ in puppet/reports/<name>.rb, and multiple report names should be
392
+ comma-separated (whitespace is okay)."
393
+ ] ,
394
+ :reportdir => { :default => "$vardir/reports" ,
395
+ :mode => 0750 ,
396
+ :owner => "$user" ,
397
+ :group => "$group" ,
398
+ :desc => "The directory in which to store reports
399
+ received from the client. Each client gets a separate
400
+ subdirectory." } ,
401
+ :fileserverconfig => [ "$confdir/fileserver.conf" ,
402
+ "Where the fileserver configuration is stored." ] ,
403
+ :rrddir => { :default => "$vardir/rrd" ,
404
+ :owner => "$user" ,
405
+ :group => "$group" ,
406
+ :desc => "The directory where RRD database files are stored.
407
+ Directories for each reporting host will be created under
408
+ this directory."
409
+ } ,
410
+ :rrdgraph => [ false , "Whether RRD information should be graphed." ] ,
411
+ :rrdinterval => [ "$runinterval" , "How often RRD should expect data.
412
+ This should match how often the hosts report back to the server." ]
384
413
)
385
414
386
415
self . setdefaults ( :puppetd ,
@@ -428,35 +457,7 @@ module Puppet
428
457
:ca_port => [ "$masterport" , "The port to use for the certificate authority." ] ,
429
458
:catalog_format => [ "yaml" , "What format to use to dump the catalog. Only supports
430
459
'marshal' and 'yaml'. Only matters on the client, since it asks the server
431
- for a specific format." ]
432
- )
433
-
434
- self . setdefaults ( :filebucket ,
435
- :clientbucketdir => {
436
- :default => "$vardir/clientbucket" ,
437
- :mode => 0750 ,
438
- :desc => "Where FileBucket files are stored locally."
439
- }
440
- )
441
- self . setdefaults ( :fileserver ,
442
- :fileserverconfig => [ "$confdir/fileserver.conf" ,
443
- "Where the fileserver configuration is stored." ]
444
- )
445
- self . setdefaults ( :reporting ,
446
- :reports => [ "store" ,
447
- "The list of reports to generate. All reports are looked for
448
- in puppet/reports/<name>.rb, and multiple report names should be
449
- comma-separated (whitespace is okay)."
450
- ] ,
451
- :reportdir => { :default => "$vardir/reports" ,
452
- :mode => 0750 ,
453
- :owner => "$user" ,
454
- :group => "$group" ,
455
- :desc => "The directory in which to store reports
456
- received from the client. Each client gets a separate
457
- subdirectory." }
458
- )
459
- self . setdefaults ( :puppetd ,
460
+ for a specific format." ] ,
460
461
:puppetdlockfile => [ "$statedir/puppetdlock" ,
461
462
"A lock file to temporarily stop puppetd from doing anything." ] ,
462
463
:usecacheonfailure => [ true ,
@@ -482,10 +483,12 @@ module Puppet
482
483
run interval." ] ,
483
484
:splay => [ false ,
484
485
"Whether to sleep for a pseudo-random (but consistent) amount of time before
485
- a run." ]
486
- )
487
-
488
- self . setdefaults ( :puppetd ,
486
+ a run." ] ,
487
+ :clientbucketdir => {
488
+ :default => "$vardir/clientbucket" ,
489
+ :mode => 0750 ,
490
+ :desc => "Where FileBucket files are stored locally."
491
+ } ,
489
492
:configtimeout => [ 120 ,
490
493
"How long the client should wait for the configuration to be retrieved
491
494
before considering it a failure. This can help reduce flapping if too
@@ -496,7 +499,14 @@ module Puppet
496
499
] ,
497
500
:report => [ false ,
498
501
"Whether to send reports after every transaction."
499
- ]
502
+ ] ,
503
+ :graph => [ false , "Whether to create dot graph files for the different
504
+ configuration graphs. These dot files can be interpreted by tools
505
+ like OmniGraffle or dot (which is part of ImageMagick)." ] ,
506
+ :graphdir => [ "$statedir/graphs" , "Where to store dot-outputted graphs." ] ,
507
+ :storeconfigs => [ false ,
508
+ "Whether to store each client's configuration. This
509
+ requires ActiveRecord from Ruby on Rails." ]
500
510
)
501
511
502
512
# Plugin information.
@@ -582,13 +592,6 @@ module Puppet
582
592
and other environments normally use ``debug``." ]
583
593
)
584
594
585
- setdefaults ( :graphing ,
586
- :graph => [ false , "Whether to create dot graph files for the different
587
- configuration graphs. These dot files can be interpreted by tools
588
- like OmniGraffle or dot (which is part of ImageMagick)." ] ,
589
- :graphdir => [ "$statedir/graphs" , "Where to store dot-outputted graphs." ]
590
- )
591
-
592
595
setdefaults ( :transaction ,
593
596
:tags => [ "" , "Tags to use to find resources. If this is set, then
594
597
only resources tagged with the specified tags will be applied.
@@ -665,12 +668,6 @@ module Puppet
665
668
branch under your main directory." ]
666
669
)
667
670
668
- setdefaults ( :puppetmasterd ,
669
- :storeconfigs => [ false ,
670
- "Whether to store each client's configuration. This
671
- requires ActiveRecord from Ruby on Rails." ]
672
- )
673
-
674
671
# This doesn't actually work right now.
675
672
setdefaults ( :parser ,
676
673
:lexical => [ false , "Whether to use lexical scoping (vs. dynamic)." ] ,
@@ -679,26 +676,4 @@ module Puppet
679
676
directories."
680
677
]
681
678
)
682
-
683
- setdefaults ( :main ,
684
- :filetimeout => [ 15 ,
685
- "The minimum time to wait (in seconds) between checking for updates in
686
- configuration files. This timeout determines how quickly Puppet checks whether
687
- a file (such as manifests or templates) has changed on disk."
688
- ]
689
- )
690
-
691
- setdefaults ( :metrics ,
692
- :rrddir => { :default => "$vardir/rrd" ,
693
- :owner => "$user" ,
694
- :group => "$group" ,
695
- :desc => "The directory where RRD database files are stored.
696
- Directories for each reporting host will be created under
697
- this directory."
698
- } ,
699
- :rrdgraph => [ false , "Whether RRD information should be graphed." ] ,
700
- :rrdinterval => [ "$runinterval" , "How often RRD should expect data.
701
- This should match how often the hosts report back to the server." ]
702
- )
703
679
end
704
-
0 commit comments