diff options
author | Mukta A <mukta.aphale@clogeny.com> | 2013-05-30 15:44:31 +0530 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-06-11 09:37:52 -0700 |
commit | 8a8793e702e598dc236fcffb6ea615ba72be421b (patch) | |
tree | 4ff69ce1480217cc49eebabfd16ddef3e0871a07 /lib/chef/provider/mount/windows.rb | |
parent | e7bc340024b0942113a8096807fcfaabc7ea8521 (diff) | |
download | chef-8a8793e702e598dc236fcffb6ea615ba72be421b.tar.gz |
Support username, password, domain for mounting windows drives
Diffstat (limited to 'lib/chef/provider/mount/windows.rb')
-rw-r--r-- | lib/chef/provider/mount/windows.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/provider/mount/windows.rb b/lib/chef/provider/mount/windows.rb index dced0d3596..b0ff8123a6 100644 --- a/lib/chef/provider/mount/windows.rb +++ b/lib/chef/provider/mount/windows.rb @@ -59,7 +59,10 @@ class Chef def mount_fs unless @current_resource.mounted - @mount.add(@new_resource.device) + @mount.add(:remote => @new_resource.device, + :username => @new_resource.auth_username, + :domainname => @new_resource.auth_domainname, + :password => @new_resource.auth_password) Chef::Log.debug("#{@new_resource} is mounted at #{@new_resource.mount_point}") else Chef::Log.debug("#{@new_resource} is already mounted at #{@new_resource.mount_point}") |