Class: PuppetX::Relay::Agent::Backend::Bolt

Inherits:
Process
  • Object
show all
Defined in:
lib/puppet_x/relay/agent/backend/bolt.rb

Instance Attribute Summary

Attributes inherited from Base

#relay_api

Instance Method Summary collapse

Methods inherited from Process

#exec

Methods inherited from Base

#exec

Constructor Details

#initialize(relay_api, bolt_command: nil, ssh_user: nil, ssh_password: nil, ssh_host_key_check: nil) ⇒ Bolt

Returns a new instance of Bolt.

Parameters:

  • bolt_command (Array<String>) (defaults to: nil)


14
15
16
17
18
19
20
21
22
23
24
# File 'lib/puppet_x/relay/agent/backend/bolt.rb', line 14

def initialize(relay_api,
               bolt_command: nil,
               ssh_user: nil,
               ssh_password: nil,
               ssh_host_key_check: nil)
  super(relay_api)
  @bolt_command = bolt_command || ['bolt']
  @ssh_user = ssh_user || 'root'
  @ssh_password = ssh_password
  @ssh_host_key_check = ssh_host_key_check.nil? ? true : ssh_host_key_check
end