diff options
| author | Luke Kanies <luke@madstop.com> | 2008-12-18 18:06:45 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-12-18 18:06:45 -0600 |
| commit | 566bf7820e56b3be503a05645cad54152309b20f (patch) | |
| tree | f773fa8ea389790c01ae8a6eb92de7cd8a44874c /lib/puppet/network/http_pool.rb | |
| parent | 0cf9decfeab5a45f8457af2e51633fd6e0f877fc (diff) | |
| download | puppet-566bf7820e56b3be503a05645cad54152309b20f.tar.gz puppet-566bf7820e56b3be503a05645cad54152309b20f.tar.xz puppet-566bf7820e56b3be503a05645cad54152309b20f.zip | |
Fixing #1729 - puppetmasterd can now read certs at startup
The main aspect of this solution is to create a site-wide
Puppet::SSL::Host instance to cache ssl key and certificate,
so that by the time we've switched UIDs, we've got the key and
cert in memory. Then webrick just uses that, rather than creating
a new Host instance.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/network/http_pool.rb')
| -rw-r--r-- | lib/puppet/network/http_pool.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/network/http_pool.rb b/lib/puppet/network/http_pool.rb index ee28a3116..9430457bb 100644 --- a/lib/puppet/network/http_pool.rb +++ b/lib/puppet/network/http_pool.rb @@ -8,13 +8,17 @@ module Puppet::Network; end module Puppet::Network::HttpPool class << self include Puppet::Util::Cacher - cached_attr(:ssl_host) { Puppet::SSL::Host.new } private cached_attr(:http_cache) { Hash.new } end + # Use the global localhost instance. + def self.ssl_host + Puppet::SSL::Host.localhost + end + # 2008/03/23 # LAK:WARNING: Enabling this has a high propability of # causing corrupt files and who knows what else. See #1010. |
