Sha256: 7f392839446031e95616b35f589824185e1e2c1c8c4728dbc67f175e7045bc70

Contents?: true

Size: 338 Bytes

Versions: 4

Compression:

Stored size: 338 Bytes

Contents

module Pvcglue
  class Packages
    class SshKeyCheck < Pvcglue::Packages
      def installed?
        # This has the side effect of adding the server to known_hosts file, to prevent needing interactive prompt
        connection.ssh_retry_wait(:root, '-o strictHostKeyChecking=no', 'echo', 30, 1)
        true
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pvcglue-0.9.3 lib/pvcglue/packages/ssh_key_check.rb
pvcglue-0.9.2 lib/pvcglue/packages/ssh_key_check.rb
pvcglue-0.9.1 lib/pvcglue/packages/ssh_key_check.rb
pvcglue-0.9.0 lib/pvcglue/packages/ssh_key_check.rb