summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-03-24 12:02:17 -0500
committerLuke Kanies <luke@madstop.com>2008-03-24 12:02:17 -0500
commitd93e1b4696978614a02ff02d24857c9e7c8cce15 (patch)
tree5b16e6bdc42d21559b6520feafc760ab7cae14c5 /lib
parent273c7ec5259d911d7d153662ad2c69c5df0a7fee (diff)
downloadpuppet-d93e1b4696978614a02ff02d24857c9e7c8cce15.tar.gz
puppet-d93e1b4696978614a02ff02d24857c9e7c8cce15.tar.xz
puppet-d93e1b4696978614a02ff02d24857c9e7c8cce15.zip
Fixing #1138 -- the yamldir is automatically created by the
server now that it's in the :puppetmasterd section rather than a separate :yaml section.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/defaults.rb11
-rw-r--r--lib/puppet/indirector/yaml.rb5
2 files changed, 5 insertions, 11 deletions
diff --git a/lib/puppet/defaults.rb b/lib/puppet/defaults.rb
index 964c544ba..0f01c2ee2 100644
--- a/lib/puppet/defaults.rb
+++ b/lib/puppet/defaults.rb
@@ -350,7 +350,11 @@ module Puppet
:ssl_client_verify_header => ["HTTP_X_CLIENT_VERIFY", "The header containing the status
message of the client verification. Only used with Mongrel. This header must be set by the proxy
to 'SUCCESS' if the client successfully authenticated, and anything else otherwise.
- See http://reductivelabs.com/puppet/trac/wiki/UsingMongrel for more information."]
+ See http://reductivelabs.com/puppet/trac/wiki/UsingMongrel for more information."],
+ # To make sure this directory is created before we try to use it on the server, we need
+ # it to be in the server section (#1138).
+ :yamldir => {:default => "$vardir/yaml", :owner => "$user", :group => "$user", :mode => "750",
+ :desc => "The directory in which YAML data is stored, usually in a subdirectory."}
)
self.setdefaults(:puppetd,
@@ -671,10 +675,5 @@ module Puppet
:rrdinterval => ["$runinterval", "How often RRD should expect data.
This should match how often the hosts report back to the server."]
)
-
- Puppet.setdefaults(:yaml,
- :yamldir => {:default => "$vardir/yaml", :owner => "$user", :group => "$user", :mode => "750",
- :desc => "The directory in which YAML data is stored, usually in a subdirectory."}
- )
end
diff --git a/lib/puppet/indirector/yaml.rb b/lib/puppet/indirector/yaml.rb
index 4baeb38db..4dd29159e 100644
--- a/lib/puppet/indirector/yaml.rb
+++ b/lib/puppet/indirector/yaml.rb
@@ -2,11 +2,6 @@ require 'puppet/indirector/terminus'
# The base class for YAML indirection termini.
class Puppet::Indirector::Yaml < Puppet::Indirector::Terminus
- def initialize
- # Make sure our base directory exists.
- Puppet.settings.use(:yaml)
- end
-
# Read a given name's file in and convert it from YAML.
def find(name)
raise ArgumentError.new("You must specify the name of the object to retrieve") unless name