Skip to content

Commit

Permalink
Merge pull request #16 from nvdk/master
Browse files Browse the repository at this point in the history
add support for --use-sudo-password to provide a password for sudo
  • Loading branch information
pperezrubio committed Sep 17, 2014
2 parents 030120b + d6ede1b commit c78c079
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/chef/knife/xenserver_vm_create.rb
Expand Up @@ -104,6 +104,10 @@ class XenserverVmCreate < Knife
:long => "--ssh-password PASSWORD",
:description => "The ssh password"

option :use_sudo_password,
:long => "--use-sudo-password PASSWORD",
:description => "The sudo password on the vm"

option :identity_file,
:short => "-i IDENTITY_FILE",
:long => "--identity-file IDENTITY_FILE",
Expand Down Expand Up @@ -349,6 +353,7 @@ def bootstrap_for_node(vm)
bootstrap.config[:environment] = config[:environment]
bootstrap.config[:host_key_verify] = config[:host_key_verify]
bootstrap.config[:ssh_password] = config[:ssh_password]
bootstrap.config[:use_sudo_password] = config[:use_sudo_password]
bootstrap
end

Expand Down

0 comments on commit c78c079

Please sign in to comment.