vagrant-serverspec 1.1.1 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +3 -1
- data/WINDOWS_README.md +10 -6
- data/lib/vagrant-serverspec/provisioner.rb +9 -5
- data/lib/vagrant-serverspec/version.rb +1 -1
- data/vagrant-serverspec.gemspec +5 -4
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57204d1d8fb236c49d49df0faf38e220f0678f31
|
4
|
+
data.tar.gz: 05e3709aa15d9976e98e5f056e5531fc3182ffd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d48d4a935352e481fd189dab8c2cc5fc84888e21ac46904cd0e53ac50d6d3ef99cf7a913aa80e4bc63c9548ae5cf58f34f1fa7163c2fc69f212af08f9f33e7e
|
7
|
+
data.tar.gz: 38147000f3642bd699f10e2e8029420900fbf092a524d3936aae911f5992d9d1f673e0ecb5c1489c375fc1895a4a055e7d16687c6b27d0d804116321a4562944
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
data/WINDOWS_README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
### Vagrant-ServerSpec Windows Readme
|
2
|
+
***
|
2
3
|
|
3
4
|
vagrant-serverspec is a [vagrant](http://vagrantup.com) plugin that implements
|
4
5
|
[serverspec](http://serverspec.org) as a provisioner.
|
@@ -49,11 +50,14 @@ For now possible examples is commented in this file.
|
|
49
50
|
#set :backend, :winrm
|
50
51
|
#set :os, :family => 'windows'
|
51
52
|
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
53
|
+
#opts = {
|
54
|
+
# endpoint: "http://#{ENV['TARGET_HOST']}:5985/wsman",
|
55
|
+
# user: 'vagrant',
|
56
|
+
# password: 'vagrant',
|
57
|
+
# transport: :ssl,
|
58
|
+
# operation_timeout: 300 # 5 minutes max timeout for any operation
|
59
|
+
# }
|
60
|
+
# winrm = ::WinRM::Connection.new(opts)
|
57
61
|
#Specinfra.configuration.winrm = winrm
|
58
62
|
```
|
59
63
|
|
@@ -15,12 +15,15 @@ module VagrantPlugins
|
|
15
15
|
winrm_info = VagrantPlugins::CommunicatorWinRM::Helper.winrm_info(@machine)
|
16
16
|
set :backend, :winrm
|
17
17
|
set :os, :family => 'windows'
|
18
|
-
user = machine.config.winrm.username
|
19
|
-
pass = machine.config.winrm.password
|
20
|
-
endpoint = "http://#{winrm_info[:host]}:#{winrm_info[:port]}/wsman"
|
21
18
|
|
22
|
-
|
23
|
-
|
19
|
+
opts = {
|
20
|
+
endpoint: "http://#{winrm_info[:host]}:#{winrm_info[:port]}/wsman",
|
21
|
+
user: machine.config.winrm.username,
|
22
|
+
password: machine.config.winrm.password,
|
23
|
+
transport: :ssl,
|
24
|
+
operation_timeout: machine.config.winrm.timeout
|
25
|
+
}
|
26
|
+
winrm = ::WinRM::Connection.new(opts)
|
24
27
|
Specinfra.configuration.winrm = winrm
|
25
28
|
else
|
26
29
|
set :backend, :ssh
|
@@ -101,3 +104,4 @@ module VagrantPlugins
|
|
101
104
|
end
|
102
105
|
end
|
103
106
|
end
|
107
|
+
|
data/vagrant-serverspec.gemspec
CHANGED
@@ -16,11 +16,12 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
17
17
|
gem.require_paths = ['lib']
|
18
18
|
|
19
|
-
gem.add_runtime_dependency 'serverspec', '~> 2.
|
20
|
-
|
19
|
+
gem.add_runtime_dependency 'serverspec', '~> 2.30', '>= 2.30'
|
20
|
+
|
21
|
+
#add onlly dependencies for winrm without nokogiri
|
22
|
+
gem.add_runtime_dependency 'winrm', '~> 2.1', '>= 2.1'
|
21
23
|
gem.add_runtime_dependency 'os', '~> 0.9.6'
|
22
|
-
|
23
|
-
|
24
|
+
|
24
25
|
gem.add_development_dependency 'bundler', '~> 1.6', '>= 1.6.2'
|
25
26
|
gem.add_development_dependency 'rake', '~> 10.3', '>= 10.3.2'
|
26
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Voorhis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: serverspec
|
@@ -16,40 +16,40 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.30'
|
20
20
|
- - '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 2.
|
22
|
+
version: '2.30'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '2.
|
29
|
+
version: '2.30'
|
30
30
|
- - '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 2.
|
32
|
+
version: '2.30'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: winrm
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - ~>
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '2.1'
|
40
40
|
- - '>='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: '2.1'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - ~>
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
49
|
+
version: '2.1'
|
50
50
|
- - '>='
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
52
|
+
version: '2.1'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: os
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,6 +113,7 @@ extensions: []
|
|
113
113
|
extra_rdoc_files: []
|
114
114
|
files:
|
115
115
|
- .gitignore
|
116
|
+
- CHANGELOG.md
|
116
117
|
- Gemfile
|
117
118
|
- LICENSE
|
118
119
|
- README.md
|
@@ -159,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
160
|
version: '0'
|
160
161
|
requirements: []
|
161
162
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.0.14
|
163
|
+
rubygems_version: 2.0.14.1
|
163
164
|
signing_key:
|
164
165
|
specification_version: 4
|
165
166
|
summary: A Vagrant plugin that executes serverspec
|