kitchen-vagrant_winrm 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 16ecf0da894a2cc18d5686f0202880622a7e6b2c
4
- data.tar.gz: e6ed107fd4d07554d62852dc9015afe17bbbfd1e
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Y2YxNmVjN2YzYWJmNjM0NzRkM2IyZWZhYjc1OGJhZmQ2ZGVjMmFmOQ==
5
+ data.tar.gz: !binary |-
6
+ NTZkZWVlYjg1ZGY3YzRhOTUxMjU5YTAyMjZhOGE2MWJhZjU5NjJlOQ==
5
7
  SHA512:
6
- metadata.gz: a52555efa90e670fe9a0a291a50d345b42ae2985719cd139f325785a7d2420546e6cbfa479eb6a249d79ac7b185c6b3cb1492d516efbfddcade5ccbddfa820e1
7
- data.tar.gz: 4e3aeae19e62c66e20eb6c2e8a4848ef8936a45c53c95ea6f9839677038def8dc968aa83cfaf3e50b47ce226e6c97e001ffa619f5fc76d1d4b9db1ef1230f2ec
8
+ metadata.gz: !binary |-
9
+ YmQyNTQ2MDNkYWZkODAwZmM1Yzc1ZjUwMTEzNGU1NjU1NmQyOWEwYTZiOWU1
10
+ YjNmODNlYTQxNTA0NTYyYzUxNDFlZmMzM2QyZjAyZmY3ZDA0OTQwY2UyYTI4
11
+ YTE1OWNiZmI3ZjkyZDdhZDEzNzg1NmQ1M2UwODE1NzY3NDMxZDk=
12
+ data.tar.gz: !binary |-
13
+ NTdjMzFjOTk3ODA5NWI2NWYyZDYyMWFiZjdiNzc4NTg2NjdkNGU5YWJhOTcy
14
+ MGRkNWJlOTFlYTg3YmE3ZjljMDIzNjNmNmJhNDIwZjM5ZjNmMmIyNmQ0Yzhl
15
+ ZDU5NGEzNWE3ZDU1MzVlMmM0ZjlhN2Q5MTI5M2VhYjEyNzE0MTE=
data/.travis.yml CHANGED
@@ -3,8 +3,8 @@ deploy:
3
3
  provider: rubygems
4
4
  api_key:
5
5
  secure: UM1xgIt9jc8oy0ZL6R7VTPApn/JTrjvIM1J1QcPNtKkp4b9Ykr62uozsadyk4giTlMU3/Fhswx6wdInwzKwLy63OVn1P4iSJn66SlOAcnn1EuK5oqyJ7UsDL8ZUphIHx0OQD+FYn/ax3ClqieWfC4W/jU277skziS9lOkEQ8FLw=
6
- gem: kitchen-vagant_winrm
6
+ gem: kitchen-vagrant_winrm
7
7
  on:
8
8
  tags: true
9
9
  all_branches: true
10
- repo: criteo/kitchen-vagant_winrm
10
+ repo: criteo/kitchen-vagrant_winrm
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.2.2
2
+ * Allow to configure custom/arbitrary vagrant settings
3
+ * Allow to use vagrant provisioning system
4
+ * Add example to integrate with new test-kitchen 1.3.1 chez-zero provisioner
5
+
6
+ ## 0.2.1
7
+ * Fix wrong sandbox path
8
+
1
9
  ## 0.2.0
2
10
  * Use vagrant-winrm (>=0.4) compression feature
3
11
  * Use shell script instead of winrm commands
data/README.md CHANGED
@@ -74,6 +74,9 @@ platforms:
74
74
  name: chef_zero
75
75
  sudo: false
76
76
  root_path: /var/chef/
77
+ chef_client_path: /opscode/chef/bin/chef-client
78
+ chef_omnibus_root: /opscode/chef/
79
+ ruby_bindir: /opscode/chef/embedded/bin
77
80
  driver_config:
78
81
  guest: windows
79
82
  communicator: 'winrm'
@@ -104,6 +107,14 @@ started.
104
107
 
105
108
  The default will be computed from the platform name of the instance.
106
109
 
110
+ ### <a name="config-provision"></a> provision
111
+
112
+ A boolean value that determines whether Vagrant provisioning system is used
113
+ when creating the VM.
114
+
115
+ By default the value is unset, or `nil`. In this case the driver will not use
116
+ the Vagrant provisioning system
117
+
107
118
  ### <a name="config-provider"></a> provider
108
119
 
109
120
  This determines which Vagrant provider to use. The value should match
@@ -115,6 +126,29 @@ By default the value is unset, or `nil`. In this case the driver will use the
115
126
  Vagrant [default provider][vagrant_default_provider] which at this current time
116
127
  is `virtualbox` unless set by `VAGRANT_DEFAULT_PROVIDER` environment variable.
117
128
 
129
+ ### <a name="config-custom_settings"></a> custom_settings
130
+
131
+ A **Hash** of Vagrant settings. Each key/value pair should be vagrant settings.
132
+ It could be used to configure custom plugins. For example:
133
+
134
+ ```ruby
135
+ driver:
136
+ custom_settings:
137
+ omnibus.chef_version: :latest
138
+ berkshelf.enabled: 'false'
139
+ ```
140
+
141
+ will generate a Vagrantfile configuration similar to:
142
+ ```ruby
143
+ Vagrant.configure("2") do |config|
144
+ # ...
145
+
146
+ config.omnibus.chef_version = :latest
147
+ config.berkshelf.enabled = false
148
+ end
149
+
150
+ You should take care of adding single/double quotes around your string values.
151
+
118
152
  ### <a name="config-customize"></a> customize
119
153
 
120
154
  A **Hash** of customizations to a Vagrant virtual machine. Each key/value
@@ -13,6 +13,7 @@ module Kitchen
13
13
  class VagrantWinrm < Base
14
14
 
15
15
  default_config :communicator, :winrm
16
+ default_config :custom_settings, {}
16
17
  default_config :customize, {
17
18
  vrde: 'on',
18
19
  vrdeport: '5000-5100',
@@ -23,6 +24,7 @@ module Kitchen
23
24
  default_config :pre_create_command, nil
24
25
  default_config :require_chef_omnibus, false
25
26
  default_config :synced_folders, []
27
+ default_config :provision, false
26
28
 
27
29
  default_config :vagrantfile_erb,
28
30
  File.join(File.dirname(__FILE__), '../../../templates/Vagrantfile.erb')
@@ -45,7 +47,8 @@ module Kitchen
45
47
  def create(state)
46
48
  create_vagrantfile
47
49
  run_pre_create_command
48
- cmd = 'vagrant up --no-provision'
50
+ cmd = 'vagrant up'
51
+ cmd += ' --no-provision' unless config[:provision]
49
52
  cmd += " --provider=#{config[:provider]}" if config[:provider]
50
53
  run cmd
51
54
  info("Vagrant instance #{instance.to_str} created.")
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for VagrantWinrm Kitchen driver
24
- VAGRANT_WINRM_VERSION = '0.2.1'
24
+ VAGRANT_WINRM_VERSION = '0.2.2'
25
25
  end
26
26
  end
@@ -20,6 +20,12 @@ Vagrant.configure("2") do |c|
20
20
  c.winrm.port = <%= config[:winrm_port] %>
21
21
  <% end %>
22
22
 
23
+ <% config[:custom_settings].each do |key, value|
24
+ value = "\"#{value}\"" if [TrueClass,FalseClass,Fixnum].include? value.class
25
+ %>
26
+ c.<%= key %> = "<%= value %>"
27
+ <% end %>
28
+
23
29
  <% Array(config[:network]).each do |opts| %>
24
30
  c.vm.network(:<%= opts[0] %>, <%= opts[1..-1].join(", ") %>)
25
31
  <% end %>
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-vagrant_winrm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Baptiste Courtois
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-02 00:00:00.000000000 Z
11
+ date: 2015-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.2.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: cane
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: tailor
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: countloc
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: Kitchen::Driver::VagrantWinRM - A Test Kitchen Driver using Vagrant-WinRM
@@ -115,11 +115,11 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - ".cane"
119
- - ".gitignore"
120
- - ".rspec"
121
- - ".tailor"
122
- - ".travis.yml"
118
+ - .cane
119
+ - .gitignore
120
+ - .rspec
121
+ - .tailor
122
+ - .travis.yml
123
123
  - CHANGELOG.md
124
124
  - Gemfile
125
125
  - LICENSE
@@ -140,17 +140,17 @@ require_paths:
140
140
  - lib
141
141
  required_ruby_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ">="
143
+ - - ! '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - ">="
148
+ - - ! '>='
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.2.2
153
+ rubygems_version: 2.4.5
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: A Test Kitchen Driver using vagrant winrm