diff options
author | James Turnbull <james@lovedthanlost.net> | 2011-03-02 17:32:21 +1100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2011-03-26 17:47:33 +1100 |
commit | 9a4de12bc4a7568b3adb9e514124edc69535ad1c (patch) | |
tree | 0965fb0cabbcaea89a60101bc5b302819dd6ef23 | |
parent | 17f673dd6fee08309970f8ff721855cf1644b45f (diff) | |
download | puppet-9a4de12bc4a7568b3adb9e514124edc69535ad1c.tar.gz puppet-9a4de12bc4a7568b3adb9e514124edc69535ad1c.tar.xz puppet-9a4de12bc4a7568b3adb9e514124edc69535ad1c.zip |
Fixed #6256 - Creation of rrd directory.
Added :metrics to the settings used by the master
-rw-r--r-- | lib/puppet/application/master.rb | 2 | ||||
-rw-r--r-- | lib/puppet/defaults.rb | 1 | ||||
-rw-r--r-- | spec/unit/application/master_spec.rb | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/puppet/application/master.rb b/lib/puppet/application/master.rb index 6d1cdef1b..c5e9ada54 100644 --- a/lib/puppet/application/master.rb +++ b/lib/puppet/application/master.rb @@ -136,7 +136,7 @@ class Puppet::Application::Master < Puppet::Application exit(Puppet.settings.print_configs ? 0 : 1) if Puppet.settings.print_configs? - Puppet.settings.use :main, :master, :ssl + Puppet.settings.use :main, :master, :ssl, :metrics # Cache our nodes in yaml. Currently not configurable. Puppet::Node.cache_class = :yaml diff --git a/lib/puppet/defaults.rb b/lib/puppet/defaults.rb index 8da104086..36159bcf7 100644 --- a/lib/puppet/defaults.rb +++ b/lib/puppet/defaults.rb @@ -474,6 +474,7 @@ module Puppet setdefaults(:metrics, :rrddir => {:default => "$vardir/rrd", + :mode => 0750, :owner => "service", :group => "service", :desc => "The directory where RRD database files are stored. diff --git a/spec/unit/application/master_spec.rb b/spec/unit/application/master_spec.rb index 074249a4d..d99b22ded 100644 --- a/spec/unit/application/master_spec.rb +++ b/spec/unit/application/master_spec.rb @@ -176,8 +176,8 @@ describe Puppet::Application::Master do lambda { @master.setup }.should raise_error(SystemExit) end - it "should tell Puppet.settings to use :main,:ssl and :master category" do - Puppet.settings.expects(:use).with(:main,:master,:ssl) + it "should tell Puppet.settings to use :main,:ssl,:master and :metrics category" do + Puppet.settings.expects(:use).with(:main,:master,:ssl,:metrics) @master.setup end |