Class: Puppet::Application::HttpMaster
- Inherits:
-
Master
- Object
- Master
- Puppet::Application::HttpMaster
- Defined in:
- lib/puppet/application/http_master.rb
Instance Method Summary collapse
Instance Method Details
#main ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/puppet/application/http_master.rb', line 11 def main require 'etc' if Puppet.features.root? begin Puppet::Util.chuser rescue => detail Puppet.log_exception(detail, "Could not change user to #{Puppet[:user]}: #{detail}") exit(39) end end if [:rack] start_rack_master else start_webrick_master end end |
#setup_ssl ⇒ Object
6 7 8 9 |
# File 'lib/puppet/application/http_master.rb', line 6 def setup_ssl # Logging is necessary to make user aware of they are currently using an unsafe transmission. Puppet.debug "Puppet HTTPMaster won't setup SSL environment." end |
#start_webrick_master ⇒ Object
30 31 32 33 |
# File 'lib/puppet/application/http_master.rb', line 30 def start_webrick_master require 'puppet/patch/webrick' super end |