vagrant-windows 1.3.2 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/Gemfile +1 -1
  3. data/README.md +2 -12
  4. data/lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/synced_folder.rb +27 -0
  5. data/lib/vagrant-windows/plugin.rb +11 -3
  6. data/lib/vagrant-windows/scripts/cheftask.ps1.erb +1 -1
  7. data/lib/vagrant-windows/version.rb +1 -1
  8. metadata +5 -52
  9. data/.DS_Store +0 -0
  10. data/coverage/.DS_Store +0 -0
  11. data/coverage/.last_run.json +0 -5
  12. data/coverage/.resultset.json +0 -1751
  13. data/coverage/assets/0.7.1/application.css +0 -1110
  14. data/coverage/assets/0.7.1/application.js +0 -626
  15. data/coverage/assets/0.7.1/fancybox/blank.gif +0 -0
  16. data/coverage/assets/0.7.1/fancybox/fancy_close.png +0 -0
  17. data/coverage/assets/0.7.1/fancybox/fancy_loading.png +0 -0
  18. data/coverage/assets/0.7.1/fancybox/fancy_nav_left.png +0 -0
  19. data/coverage/assets/0.7.1/fancybox/fancy_nav_right.png +0 -0
  20. data/coverage/assets/0.7.1/fancybox/fancy_shadow_e.png +0 -0
  21. data/coverage/assets/0.7.1/fancybox/fancy_shadow_n.png +0 -0
  22. data/coverage/assets/0.7.1/fancybox/fancy_shadow_ne.png +0 -0
  23. data/coverage/assets/0.7.1/fancybox/fancy_shadow_nw.png +0 -0
  24. data/coverage/assets/0.7.1/fancybox/fancy_shadow_s.png +0 -0
  25. data/coverage/assets/0.7.1/fancybox/fancy_shadow_se.png +0 -0
  26. data/coverage/assets/0.7.1/fancybox/fancy_shadow_sw.png +0 -0
  27. data/coverage/assets/0.7.1/fancybox/fancy_shadow_w.png +0 -0
  28. data/coverage/assets/0.7.1/fancybox/fancy_title_left.png +0 -0
  29. data/coverage/assets/0.7.1/fancybox/fancy_title_main.png +0 -0
  30. data/coverage/assets/0.7.1/fancybox/fancy_title_over.png +0 -0
  31. data/coverage/assets/0.7.1/fancybox/fancy_title_right.png +0 -0
  32. data/coverage/assets/0.7.1/fancybox/fancybox-x.png +0 -0
  33. data/coverage/assets/0.7.1/fancybox/fancybox-y.png +0 -0
  34. data/coverage/assets/0.7.1/fancybox/fancybox.png +0 -0
  35. data/coverage/assets/0.7.1/favicon_green.png +0 -0
  36. data/coverage/assets/0.7.1/favicon_red.png +0 -0
  37. data/coverage/assets/0.7.1/favicon_yellow.png +0 -0
  38. data/coverage/assets/0.7.1/loading.gif +0 -0
  39. data/coverage/assets/0.7.1/magnify.png +0 -0
  40. data/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  41. data/coverage/assets/0.7.1/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  42. data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  43. data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  44. data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  45. data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  46. data/coverage/assets/0.7.1/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  47. data/coverage/assets/0.7.1/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  48. data/coverage/assets/0.7.1/smoothness/images/ui-icons_222222_256x240.png +0 -0
  49. data/coverage/assets/0.7.1/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  50. data/coverage/assets/0.7.1/smoothness/images/ui-icons_454545_256x240.png +0 -0
  51. data/coverage/assets/0.7.1/smoothness/images/ui-icons_888888_256x240.png +0 -0
  52. data/coverage/assets/0.7.1/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  53. data/coverage/index.html +0 -11000
  54. data/lib/.DS_Store +0 -0
  55. data/spec/.DS_Store +0 -0
data/CHANGELOG.md CHANGED
@@ -60,3 +60,8 @@
60
60
 
61
61
  1.3.2
62
62
  - Fixed issue 145 - The shell provisioner wasn't respecting file extensions for non-inline scripts.
63
+
64
+ 1.4.0
65
+ - Added Vagrant 1.4.0 support, added VBox synced folder monkey patch for Vagrant 1.4
66
+ - Fixed issue 149 - Added documentation about auto_correct for winrm port
67
+ - Fixed issue 152 - Chef task fails when password contains $
data/Gemfile CHANGED
@@ -7,6 +7,6 @@ group :development do
7
7
  # We depend on Vagrant for development, but we don't add it as a
8
8
  # gem dependency because we expect to be installed within the
9
9
  # Vagrant environment itself using `vagrant plugin`.
10
- gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => 'v1.3.5'
10
+ gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => 'v1.4.0'
11
11
  gem "mocha", :require => false
12
12
  end
data/README.md CHANGED
@@ -77,22 +77,12 @@ Add the following to your Vagrantfile
77
77
 
78
78
  ```ruby
79
79
  config.vm.guest = :windows
80
- config.windows.halt_timeout = 25
81
- config.winrm.username = "vagrant"
82
- config.winrm.password = "vagrant"
83
- config.vm.network :forwarded_port, guest: 5985, host: 5985
80
+ config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct: true
84
81
  ```
85
82
 
86
83
  Example:
87
84
  ```ruby
88
85
  Vagrant.configure("2") do |config|
89
-
90
- # Max time to wait for the guest to shutdown
91
- config.windows.halt_timeout = 25
92
-
93
- # Admin user name and password
94
- config.winrm.username = "vagrant"
95
- config.winrm.password = "vagrant"
96
86
 
97
87
  # Configure base box parameters
98
88
  config.vm.box = "vagrant-windows2008r2"
@@ -101,7 +91,7 @@ Vagrant.configure("2") do |config|
101
91
 
102
92
  # Port forward WinRM and RDP
103
93
  config.vm.network :forwarded_port, guest: 3389, host: 3389
104
- config.vm.network :forwarded_port, guest: 5985, host: 5985
94
+ config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct: true
105
95
 
106
96
  end
107
97
  ````
@@ -0,0 +1,27 @@
1
+ require "#{Vagrant::source_root}/plugins/providers/virtualbox/synced_folder"
2
+ require_relative '../../../../helper'
3
+
4
+ module VagrantPlugins
5
+ module ProviderVirtualBox
6
+
7
+ class SyncedFolder < Vagrant.plugin("2", :synced_folder)
8
+ include VagrantWindows::Helper
9
+
10
+ vagrant_prepare = instance_method(:prepare)
11
+
12
+ define_method(:prepare) do |machine, folders, _opts|
13
+ if VagrantWindows::WindowsMachine.is_windows?(machine)
14
+ windows_folders = {}
15
+ folders.each do |id, data|
16
+ windows_id = win_friendly_share_id(id.gsub(/[\/\/]/,'_').sub(/^_/, ''))
17
+ windows_folders[windows_id] = data
18
+ end
19
+ folders = windows_folders
20
+ end
21
+ vagrant_prepare.bind(self).(machine, folders, _opts)
22
+ end
23
+
24
+ end
25
+
26
+ end
27
+ end
@@ -10,13 +10,21 @@ if Vagrant::VERSION < "1.1.0"
10
10
  raise "The Vagrant Windows plugin is only compatible with Vagrant 1.1+"
11
11
  end
12
12
 
13
- if Vagrant::VERSION >= "1.2.0"
13
+ if Vagrant::VERSION >= "1.2.0" && Vagrant::VERSION < "1.4.0"
14
14
  # Monkey Patch the virtualbox share_folders action to make valid share names on windows
15
15
  require_relative "monkey_patches/plugins/providers/virtualbox/action/share_folders"
16
16
  end
17
17
 
18
- # Monkey patch the vbox42 driver to support read mac addresses
19
- require_relative "monkey_patches/plugins/providers/virtualbox/driver/version_4_2"
18
+ if Vagrant::VERSION >= "1.4.0"
19
+ # Monkey Patch the virtualbox share_folders action to make valid share names on windows
20
+ require_relative "monkey_patches/plugins/providers/virtualbox/synced_folder"
21
+ end
22
+
23
+ # Monkey patch the vbox42 driver to support read mac addresses on old versions of Vagrant
24
+ # before this commit 18417234787de9294abac5850ec426b841a09c87
25
+ if Vagrant::VERSION < "1.2.5"
26
+ require_relative "monkey_patches/plugins/providers/virtualbox/driver/version_4_2"
27
+ end
20
28
 
21
29
  # Monkey Patch the VM object to support multiple channels, i.e. WinRM
22
30
  require_relative "monkey_patches/lib/vagrant/machine"
@@ -7,7 +7,7 @@ if (Test-Path "<%= options[:chef_task_running] %>") {
7
7
  }
8
8
 
9
9
  # schedule the task to run once in the far distant future
10
- schtasks /create /tn "chef-solo" /xml "<%= options[:chef_task_xml] %>" /ru "<%= options[:user] %>" /rp "<%= options[:pass] %>" | Out-Null
10
+ schtasks /create /tn 'chef-solo' /xml '<%= options[:chef_task_xml] %>' /ru '<%= options[:user] %>' /rp '<%= options[:pass] %>' | Out-Null
11
11
 
12
12
  # start the scheduled task right now
13
13
  schtasks /run /tn "chef-solo" | Out-Null
@@ -1,3 +1,3 @@
1
1
  module VagrantWindows
2
- VERSION = "1.3.2"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-windows
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-12-04 00:00:00.000000000 Z
13
+ date: 2013-12-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: winrm
@@ -117,47 +117,6 @@ extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
119
  - CHANGELOG.md
120
- - coverage/assets/0.7.1/application.css
121
- - coverage/assets/0.7.1/application.js
122
- - coverage/assets/0.7.1/fancybox/blank.gif
123
- - coverage/assets/0.7.1/fancybox/fancy_close.png
124
- - coverage/assets/0.7.1/fancybox/fancy_loading.png
125
- - coverage/assets/0.7.1/fancybox/fancy_nav_left.png
126
- - coverage/assets/0.7.1/fancybox/fancy_nav_right.png
127
- - coverage/assets/0.7.1/fancybox/fancy_shadow_e.png
128
- - coverage/assets/0.7.1/fancybox/fancy_shadow_n.png
129
- - coverage/assets/0.7.1/fancybox/fancy_shadow_ne.png
130
- - coverage/assets/0.7.1/fancybox/fancy_shadow_nw.png
131
- - coverage/assets/0.7.1/fancybox/fancy_shadow_s.png
132
- - coverage/assets/0.7.1/fancybox/fancy_shadow_se.png
133
- - coverage/assets/0.7.1/fancybox/fancy_shadow_sw.png
134
- - coverage/assets/0.7.1/fancybox/fancy_shadow_w.png
135
- - coverage/assets/0.7.1/fancybox/fancy_title_left.png
136
- - coverage/assets/0.7.1/fancybox/fancy_title_main.png
137
- - coverage/assets/0.7.1/fancybox/fancy_title_over.png
138
- - coverage/assets/0.7.1/fancybox/fancy_title_right.png
139
- - coverage/assets/0.7.1/fancybox/fancybox-x.png
140
- - coverage/assets/0.7.1/fancybox/fancybox-y.png
141
- - coverage/assets/0.7.1/fancybox/fancybox.png
142
- - coverage/assets/0.7.1/favicon_green.png
143
- - coverage/assets/0.7.1/favicon_red.png
144
- - coverage/assets/0.7.1/favicon_yellow.png
145
- - coverage/assets/0.7.1/loading.gif
146
- - coverage/assets/0.7.1/magnify.png
147
- - coverage/assets/0.7.1/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
148
- - coverage/assets/0.7.1/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
149
- - coverage/assets/0.7.1/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
150
- - coverage/assets/0.7.1/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
151
- - coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_dadada_1x400.png
152
- - coverage/assets/0.7.1/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
153
- - coverage/assets/0.7.1/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
154
- - coverage/assets/0.7.1/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
155
- - coverage/assets/0.7.1/smoothness/images/ui-icons_222222_256x240.png
156
- - coverage/assets/0.7.1/smoothness/images/ui-icons_2e83ff_256x240.png
157
- - coverage/assets/0.7.1/smoothness/images/ui-icons_454545_256x240.png
158
- - coverage/assets/0.7.1/smoothness/images/ui-icons_888888_256x240.png
159
- - coverage/assets/0.7.1/smoothness/images/ui-icons_cd0a0a_256x240.png
160
- - coverage/index.html
161
120
  - Gemfile
162
121
  - lib/vagrant-windows/communication/guestnetwork.rb
163
122
  - lib/vagrant-windows/communication/winrmcommunicator.rb
@@ -176,6 +135,7 @@ files:
176
135
  - lib/vagrant-windows/monkey_patches/lib/vagrant/machine.rb
177
136
  - lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/action/share_folders.rb
178
137
  - lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/driver/version_4_2.rb
138
+ - lib/vagrant-windows/monkey_patches/plugins/providers/virtualbox/synced_folder.rb
179
139
  - lib/vagrant-windows/monkey_patches/plugins/provisioners/chef/provisioner/chef_client.rb
180
140
  - lib/vagrant-windows/monkey_patches/plugins/provisioners/chef/provisioner/chef_solo.rb
181
141
  - lib/vagrant-windows/monkey_patches/plugins/provisioners/puppet/provisioner/puppet.rb
@@ -208,14 +168,8 @@ files:
208
168
  - spec/vagrant-windows/winrmfinder_spec.rb
209
169
  - spec/vagrant-windows/winrmshell_spec.rb
210
170
  - vagrant-windows.gemspec
211
- - .DS_Store
212
171
  - .gitignore
213
172
  - .travis.yml
214
- - coverage/.DS_Store
215
- - coverage/.last_run.json
216
- - coverage/.resultset.json
217
- - lib/.DS_Store
218
- - spec/.DS_Store
219
173
  homepage: https://github.com/WinRb/vagrant-windows
220
174
  licenses:
221
175
  - APACHE2
@@ -231,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
185
  version: '0'
232
186
  segments:
233
187
  - 0
234
- hash: 1215411857304012752
188
+ hash: 604266058091008148
235
189
  required_rubygems_version: !ruby/object:Gem::Requirement
236
190
  none: false
237
191
  requirements:
@@ -240,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
194
  version: '0'
241
195
  segments:
242
196
  - 0
243
- hash: 1215411857304012752
197
+ hash: 604266058091008148
244
198
  requirements: []
245
199
  rubyforge_project:
246
200
  rubygems_version: 1.8.23
@@ -259,4 +213,3 @@ test_files:
259
213
  - spec/vagrant-windows/winrmcommunicator_spec.rb
260
214
  - spec/vagrant-windows/winrmfinder_spec.rb
261
215
  - spec/vagrant-windows/winrmshell_spec.rb
262
- - spec/.DS_Store
data/.DS_Store DELETED
Binary file
data/coverage/.DS_Store DELETED
Binary file
@@ -1,5 +0,0 @@
1
- {
2
- "result": {
3
- "covered_percent": 57.86
4
- }
5
- }