summaryrefslogtreecommitdiffstats
path: root/lib/puppet/server
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-04-28 19:46:04 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-04-28 19:46:04 +0000
commit12c122c882c6053f8b21714bb8c4c8bf8be699c9 (patch)
treec1957def7a101b71f02c05e142ae2c5ec7bfcd68 /lib/puppet/server
parent047e63f8481a95c32ceccc22673d4a08659ec9c8 (diff)
Puppetd now has an option for listening -- just run the --listen option, and it will start up with a pelement server. It will fail to start if the authconfig file (defaulting to /etc/puppet/namespaceauth.conf) is missing, since it defaults to access at this point.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1148 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/server')
-rw-r--r--lib/puppet/server/authconfig.rb9
-rw-r--r--lib/puppet/server/servlet.rb1
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/puppet/server/authconfig.rb b/lib/puppet/server/authconfig.rb
index bc5d713e0..951a21229 100644
--- a/lib/puppet/server/authconfig.rb
+++ b/lib/puppet/server/authconfig.rb
@@ -34,6 +34,8 @@ class AuthConfig < Puppet::ParsedFile
namespace = namespace.intern
method = method.intern
+ read()
+
if @rights.include?(name)
return @rights[name].allowed?(host, ip)
elsif @rights.include?(namespace)
@@ -58,7 +60,8 @@ class AuthConfig < Puppet::ParsedFile
return unless self.exists?
super(@file)
@rights = Rights.new
- @configstamp = @configtimeout = @configstatted = nil
+ @configstamp = @configstatted = nil
+ @configtimeout = 60
if parsenow
read()
@@ -77,10 +80,14 @@ class AuthConfig < Puppet::ParsedFile
if tmp == @configstamp
return
+ else
+ Puppet.notice "%s vs %s" % [tmp, @configstamp]
end
else
return
end
+ else
+ Puppet.notice "%s and %s" % [@configtimeout, @configstatted]
end
end
diff --git a/lib/puppet/server/servlet.rb b/lib/puppet/server/servlet.rb
index 2ea599c1a..d60ae77d7 100644
--- a/lib/puppet/server/servlet.rb
+++ b/lib/puppet/server/servlet.rb
@@ -104,6 +104,7 @@ class Server
def initialize(server, handlers)
@puppetserver = server
+ @notified = {}
# the servlet base class does not consume any arguments
# and its BasicServer base class only accepts a 'class_delim'
# option which won't change in Puppet at all