summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-22 15:40:28 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-22 15:40:28 +0000
commit60d36e277e00fc3fea3146b20dc6af73058fabba (patch)
tree13242b154340b484eec6cf11491ea418df381219 /lib
parent5bd0e8c6035e5d175c6c609813e844ae3a77a055 (diff)
downloadpuppet-60d36e277e00fc3fea3146b20dc6af73058fabba.tar.gz
puppet-60d36e277e00fc3fea3146b20dc6af73058fabba.tar.xz
puppet-60d36e277e00fc3fea3146b20dc6af73058fabba.zip
Moving the authconfig setting to configuration.rb instead of network/authconfig.rb, as mentioned by Koen Vereeken
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2345 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/configuration.rb7
-rw-r--r--lib/puppet/network/authconfig.rb7
2 files changed, 6 insertions, 8 deletions
diff --git a/lib/puppet/configuration.rb b/lib/puppet/configuration.rb
index 018d5f787..67c772eac 100644
--- a/lib/puppet/configuration.rb
+++ b/lib/puppet/configuration.rb
@@ -114,7 +114,12 @@ module Puppet
},
:ignoreimport => [false, "A parameter that can be used in commit
hooks, since it enables you to parse-check a single file rather
- than requiring that all files exist."]
+ than requiring that all files exist."],
+ :authconfig => [ "$confdir/namespaceauth.conf",
+ "The configuration file that defines the rights to the different
+ namespaces and methods. This can be used as a coarse-grained
+ authorization system for both ``puppetd`` and ``puppetmasterd``."
+ ]
)
# Define the config default.
diff --git a/lib/puppet/network/authconfig.rb b/lib/puppet/network/authconfig.rb
index 19fbc6cf3..ebf005022 100644
--- a/lib/puppet/network/authconfig.rb
+++ b/lib/puppet/network/authconfig.rb
@@ -4,13 +4,6 @@ require 'puppet/network/rights'
module Puppet
class ConfigurationError < Puppet::Error; end
class Network::AuthConfig < Puppet::Util::LoadedFile
- Puppet.config.setdefaults(:puppet,
- :authconfig => [ "$confdir/namespaceauth.conf",
- "The configuration file that defines the rights to the different
- namespaces and methods. This can be used as a coarse-grained
- authorization system for both ``puppetd`` and ``puppetmasterd``."
- ]
- )
def self.main
unless defined? @main