Class: Puppet::SSL::StateMachine::Wait

Inherits:
SSLState show all
Defined in:
lib/puppet/ssl/state_machine.rb

Overview

We cannot make progress, so wait if allowed to do so, or error.

Instance Attribute Summary

Attributes inherited from SSLState

#ssl_context

Instance Method Summary collapse

Methods inherited from SSLState

#initialize

Constructor Details

This class inherits a constructor from Puppet::SSL::StateMachine::SSLState

Instance Method Details

#next_stateObject



188
189
190
191
192
193
194
195
196
197
198
199
200
# File 'lib/puppet/ssl/state_machine.rb', line 188

def next_state
  time = @machine.onetime ? 0 : @machine.waitforcert
  if time < 1
    puts _("Exiting; no certificate found and waitforcert is disabled")
    exit(1)
  else
    sleep(time)

    # our ssl directory may have been cleaned while we were
    # sleeping, start over from the top
    NeedCACerts.new(@machine)
  end
end