Sha256: b613b3af76072c6d53e48e0a1843bded89aa28fe008aff8a569f0ed8b259976d

Contents?: true

Size: 633 Bytes

Versions: 3

Compression:

Stored size: 633 Bytes

Contents

module Pvcglue
  class Packages
    class SshKeyCheck < Pvcglue::Packages
      def installed?
        docs.level_2('Status')
        # This has the side effect of adding the server to known_hosts file, to prevent needing interactive prompt
        docs.set_item(
          heading: 'Verify Connection',
          body: 'Connect to the machine and wait until it''s ready (with automatic retry).  Also add the machine to the `known_hosts` file, to prevent an interactive prompt'
        ) do
          connection.ssh_retry_wait(:root, '-o strictHostKeyChecking=no', 'echo', 30, 1)
        end
        true
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pvcglue-0.9.6 lib/pvcglue/packages/ssh_key_check.rb
pvcglue-0.9.5 lib/pvcglue/packages/ssh_key_check.rb
pvcglue-0.9.4 lib/pvcglue/packages/ssh_key_check.rb