diff options
| author | Luke Kanies <luke@madstop.com> | 2008-08-07 18:41:28 -0700 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-08-07 18:41:28 -0700 |
| commit | 025edc5c3737f476119df4bab73ebdc68be19430 (patch) | |
| tree | cde8a7a1813e8d317c956276431419e909c27d54 /bin/puppetd | |
| parent | 62202bf55723096d05a61efefae46ee98a2948dd (diff) | |
| download | puppet-025edc5c3737f476119df4bab73ebdc68be19430.tar.gz puppet-025edc5c3737f476119df4bab73ebdc68be19430.tar.xz puppet-025edc5c3737f476119df4bab73ebdc68be19430.zip | |
puppetd now uses the Indirected SSL.
This means it now uses REST for certificate saving
and retrieval, which is awesome.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'bin/puppetd')
| -rwxr-xr-x | bin/puppetd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/puppetd b/bin/puppetd index c38cebac0..c17654892 100755 --- a/bin/puppetd +++ b/bin/puppetd @@ -326,7 +326,7 @@ end # We need to specify a ca location for things to work, but # until the REST cert transfers are working, it needs to # be local. -Puppet::SSL::Host.ca_location = :local +Puppet::SSL::Host.ca_location = :remote # We need tomake the client either way, we just don't start it # if --no-client is set. @@ -349,9 +349,9 @@ if Puppet[:daemonize] client.daemonize end -unless Puppet::Executables::Client::CertHandler.new(options[:waitforcert], options[:onetime]).read_retrieve - client.recycle_connection -end +host = Puppet::SSL::Host.new +cert = host.wait_for_cert(options[:waitforcert]) +client.recycle_connection if cert == :new objects = [] |
