vagrant-windows 1.6.0.pre.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +4 -0
- data/README.md +7 -0
- data/lib/vagrant-windows/communication/winrmcommunicator.rb +3 -2
- data/lib/vagrant-windows/communication/winrmshell.rb +8 -0
- data/lib/vagrant-windows/version.rb +1 -1
- metadata +12 -29
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6e89e485b8fae09a9d784792b184ebbc61d70185
|
4
|
+
data.tar.gz: a36e78c2c59df8921a7ad3db46ac7713d02a04d7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 035e50bbe58c5e2512624982e1a2797f36530ce8855c67e45dbd5ab3aea8d15390aab866b870c660a870799061cdcec33f006f610928812ee4cb747685a5901d
|
7
|
+
data.tar.gz: a23744a7c72a969c0ea40a935b1a5deb8c85bafc0a4815f4729d232c7f74a7a12ea0283156b88499740b175d6085e702d69b80a66ad129e873e72c059a868c80
|
data/CHANGELOG.md
CHANGED
@@ -73,3 +73,7 @@
|
|
73
73
|
- Fixed issue 158 - Vagrant 1.4 broke the Puppet provisioner monkey patch. Removed configure method monkey patch.
|
74
74
|
- Fixed issue 162 - Set plugin name to 'vagrant-windows' to support has_plugin? method works.
|
75
75
|
- Reset winrmshell on error. When using the vSphere provider the hostname would not resolve.
|
76
|
+
|
77
|
+
1.6.0
|
78
|
+
- Added chef-client provisioner support and extracted shared code from chef-solo provisioner
|
79
|
+
- WinRM communicator download support
|
data/README.md
CHANGED
@@ -48,6 +48,13 @@ These commands assume you're running from a regular command window and not Power
|
|
48
48
|
sc config WinRM start= auto
|
49
49
|
```
|
50
50
|
|
51
|
+
__NOTE:__ For the WinRM service to work in Windows 7, the network profile has to be changed from Public to Work. To ensure that networks added later (i.e. through the Vagrantfile) also are made non-public, add the following to your Vagrantfile:
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
# Ensure that all networks are set to private
|
55
|
+
config.windows.set_work_network = true
|
56
|
+
```
|
57
|
+
|
51
58
|
#### Additional WinRM 1.1 Configuration
|
52
59
|
|
53
60
|
These additional configuration steps are specific to Windows Server 2008 (WinRM 1.1). For Windows Server 2008 R2, Windows 7 and later versions of Windows you can ignore this section.
|
@@ -75,8 +75,9 @@ module VagrantWindows
|
|
75
75
|
winrmshell.upload(from, to)
|
76
76
|
end
|
77
77
|
|
78
|
-
def download(from, to
|
79
|
-
@logger.
|
78
|
+
def download(from, to)
|
79
|
+
@logger.debug("Downloading: #{from} to #{to}")
|
80
|
+
winrmshell.download(from, to)
|
80
81
|
end
|
81
82
|
|
82
83
|
def winrmshell=(winrmshell)
|
@@ -77,6 +77,14 @@ module VagrantWindows
|
|
77
77
|
EOH
|
78
78
|
end
|
79
79
|
|
80
|
+
def download(from, to)
|
81
|
+
@logger.debug("Downloading: #{from} to #{to}")
|
82
|
+
output = powershell("[System.convert]::ToBase64String([System.IO.File]::ReadAllBytes(\"#{from}\"))")
|
83
|
+
contents = output[:data].map!{|line| line[:stdout]}.join.gsub("\\n\\r", '')
|
84
|
+
out = Base64.decode64(contents)
|
85
|
+
IO.binwrite(to, out)
|
86
|
+
end
|
87
|
+
|
80
88
|
protected
|
81
89
|
|
82
90
|
def execute_shell(command, shell=:powershell, &block)
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-windows
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.0
|
5
|
-
prerelease: 6
|
4
|
+
version: 1.6.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Paul Morton
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2014-
|
12
|
+
date: 2014-03-20 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: winrm
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,23 +28,20 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: rake
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
|
-
- -
|
32
|
+
- - '>='
|
37
33
|
- !ruby/object:Gem::Version
|
38
34
|
version: '0'
|
39
35
|
type: :development
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
|
-
- -
|
39
|
+
- - '>='
|
45
40
|
- !ruby/object:Gem::Version
|
46
41
|
version: '0'
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: rspec-core
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ~>
|
53
47
|
- !ruby/object:Gem::Version
|
@@ -55,7 +49,6 @@ dependencies:
|
|
55
49
|
type: :development
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ~>
|
61
54
|
- !ruby/object:Gem::Version
|
@@ -63,7 +56,6 @@ dependencies:
|
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: rspec-expectations
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
60
|
- - ~>
|
69
61
|
- !ruby/object:Gem::Version
|
@@ -71,7 +63,6 @@ dependencies:
|
|
71
63
|
type: :development
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
67
|
- - ~>
|
77
68
|
- !ruby/object:Gem::Version
|
@@ -79,7 +70,6 @@ dependencies:
|
|
79
70
|
- !ruby/object:Gem::Dependency
|
80
71
|
name: rspec-mocks
|
81
72
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
73
|
requirements:
|
84
74
|
- - ~>
|
85
75
|
- !ruby/object:Gem::Version
|
@@ -87,7 +77,6 @@ dependencies:
|
|
87
77
|
type: :development
|
88
78
|
prerelease: false
|
89
79
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
80
|
requirements:
|
92
81
|
- - ~>
|
93
82
|
- !ruby/object:Gem::Version
|
@@ -95,17 +84,15 @@ dependencies:
|
|
95
84
|
- !ruby/object:Gem::Dependency
|
96
85
|
name: simplecov
|
97
86
|
requirement: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
87
|
requirements:
|
100
|
-
- -
|
88
|
+
- - '>='
|
101
89
|
- !ruby/object:Gem::Version
|
102
90
|
version: '0'
|
103
91
|
type: :development
|
104
92
|
prerelease: false
|
105
93
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
94
|
requirements:
|
108
|
-
- -
|
95
|
+
- - '>='
|
109
96
|
- !ruby/object:Gem::Version
|
110
97
|
version: '0'
|
111
98
|
description: Windows Guest Support for Vagrant
|
@@ -175,30 +162,26 @@ files:
|
|
175
162
|
homepage: https://github.com/WinRb/vagrant-windows
|
176
163
|
licenses:
|
177
164
|
- APACHE2
|
165
|
+
metadata: {}
|
178
166
|
post_install_message:
|
179
167
|
rdoc_options: []
|
180
168
|
require_paths:
|
181
169
|
- lib
|
182
170
|
required_ruby_version: !ruby/object:Gem::Requirement
|
183
|
-
none: false
|
184
171
|
requirements:
|
185
|
-
- -
|
172
|
+
- - '>='
|
186
173
|
- !ruby/object:Gem::Version
|
187
174
|
version: '0'
|
188
|
-
segments:
|
189
|
-
- 0
|
190
|
-
hash: 1012872433486920288
|
191
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
|
-
none: false
|
193
176
|
requirements:
|
194
|
-
- -
|
177
|
+
- - '>='
|
195
178
|
- !ruby/object:Gem::Version
|
196
|
-
version:
|
179
|
+
version: '0'
|
197
180
|
requirements: []
|
198
181
|
rubyforge_project:
|
199
|
-
rubygems_version:
|
182
|
+
rubygems_version: 2.0.14
|
200
183
|
signing_key:
|
201
|
-
specification_version:
|
184
|
+
specification_version: 4
|
202
185
|
summary: A small gem that adds windows guest support to vagrant, uses WinRM as the
|
203
186
|
Communication Channel
|
204
187
|
test_files:
|