Class: VagrantPlugins::Ansible_Fixed::Config::Host
- Defined in:
- lib/config/host.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#ask_sudo_pass ⇒ Object
Returns the value of attribute ask_sudo_pass.
-
#ask_vault_pass ⇒ Object
Returns the value of attribute ask_vault_pass.
-
#force_remote_user ⇒ Object
Returns the value of attribute force_remote_user.
-
#host_key_checking ⇒ Object
Returns the value of attribute host_key_checking.
-
#raw_ssh_args ⇒ Object
Returns the value of attribute raw_ssh_args.
Attributes inherited from Base
#extra_vars, #galaxy_command, #galaxy_role_file, #galaxy_roles_path, #groups, #host_vars, #inventory_path, #limit, #playbook, #raw_arguments, #skip_tags, #start_at_task, #sudo, #sudo_user, #tags, #vault_password_file, #verbose
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ Host
constructor
A new instance of Host.
- #validate(machine) ⇒ Object
Constructor Details
#initialize ⇒ Host
Returns a new instance of Host.
14 15 16 17 18 19 20 21 22 |
# File 'lib/config/host.rb', line 14 def initialize super @ask_sudo_pass = false @ask_vault_pass = false @force_remote_user = true @host_key_checking = false @raw_ssh_args = UNSET_VALUE end |
Instance Attribute Details
#ask_sudo_pass ⇒ Object
Returns the value of attribute ask_sudo_pass.
8 9 10 |
# File 'lib/config/host.rb', line 8 def ask_sudo_pass @ask_sudo_pass end |
#ask_vault_pass ⇒ Object
Returns the value of attribute ask_vault_pass.
9 10 11 |
# File 'lib/config/host.rb', line 9 def ask_vault_pass @ask_vault_pass end |
#force_remote_user ⇒ Object
Returns the value of attribute force_remote_user.
10 11 12 |
# File 'lib/config/host.rb', line 10 def force_remote_user @force_remote_user end |
#host_key_checking ⇒ Object
Returns the value of attribute host_key_checking.
11 12 13 |
# File 'lib/config/host.rb', line 11 def host_key_checking @host_key_checking end |
#raw_ssh_args ⇒ Object
Returns the value of attribute raw_ssh_args.
12 13 14 |
# File 'lib/config/host.rb', line 12 def raw_ssh_args @raw_ssh_args end |
Instance Method Details
#finalize! ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/config/host.rb', line 24 def finalize! super @ask_sudo_pass = false if @ask_sudo_pass != true @ask_vault_pass = false if @ask_vault_pass != true @force_remote_user = true if @force_remote_user != false @host_key_checking = false if @host_key_checking != true @raw_ssh_args = nil if @raw_ssh_args == UNSET_VALUE end |
#validate(machine) ⇒ Object
34 35 36 37 38 |
# File 'lib/config/host.rb', line 34 def validate(machine) super { "ansible remote provisioner" => @errors } end |