kitchen-vmm 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +13 -2
- data/lib/kitchen/driver/vmm.rb +5 -1
- data/lib/kitchen/driver/vmm_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmQxYzZmM2FjZDdkY2QyMjllMTc2YTA4YmQyNTU4YmQyMTNmZDRlMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWFlYjVkZmJhNjQ5NmVlNjRjNWEyNGU0ZmVlZTc2MDI0MmI1ZjAxOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzgxZTNhNjkxNmVhZGVmYTc2NGM3NDc1MzJhMGYwNzNlZjIzMjMxMzVjNGVj
|
10
|
+
ZGRhNTIxYmEyZDBkM2E5ZmQ4YzZkOTlmNjE4ZmQ5NDU2NzJiYzcxMzlmMTJi
|
11
|
+
MjM2MDg2MTNmNGE0MmE1ZjY4ZTk1NzAyOTNjMzk4Y2FiMGRlZGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjAxZjJhZTRlN2JkMjM2N2RkOTc5ZmE3ZTgxNTU5M2YyMTAzOGQyZjAyOTE3
|
14
|
+
MzU2Y2U3YjYxODI2NTY4ZDg4MjNhY2JjMTM1ZTU0NzMyZTgwMzNlODJkYjg0
|
15
|
+
Y2MxY2YzOTAyOGY1NWY1MDc4MWFjOTY1M2YyMzc5ZWIxMmMwYmM=
|
data/README.md
CHANGED
@@ -64,7 +64,7 @@ platforms:
|
|
64
64
|
### Configure Transport
|
65
65
|
|
66
66
|
In case you need to create both Linux and Windows machines, then different transport types have to be used(ssh for linux and winrm for windows).
|
67
|
-
For easier maintenance and cleaner configuration you can create global kitchen configuration under $HOME
|
67
|
+
For easier maintenance and cleaner configuration you can create global kitchen configuration under $HOME/[username]/.kitchen/config.yml with following contents:
|
68
68
|
|
69
69
|
```yaml
|
70
70
|
<% WINRM_USERNAME = 'winrm_user' %>
|
@@ -79,7 +79,7 @@ transport:
|
|
79
79
|
# example: winrm_transport
|
80
80
|
```
|
81
81
|
|
82
|
-
Then in your kitchen.yml
|
82
|
+
Then in your cookbook specific kitchen.yml configure transport either for platform or suite
|
83
83
|
```yaml
|
84
84
|
suites:
|
85
85
|
- name: windows-basic
|
@@ -136,6 +136,17 @@ suites:
|
|
136
136
|
vm_name: 'my-vm-in-vmm'
|
137
137
|
```
|
138
138
|
|
139
|
+
* #### vm_name_prefix
|
140
|
+
|
141
|
+
Prefix for VM name, all created VMs are going to have name prepended with the specified prefix.
|
142
|
+
|
143
|
+
```yaml
|
144
|
+
driver_config:
|
145
|
+
...
|
146
|
+
vm_name_prefix: tst-
|
147
|
+
```
|
148
|
+
|
149
|
+
|
139
150
|
* #### vm_hardware_profile
|
140
151
|
|
141
152
|
Specify alternate HW profile that should be used instead of the one provided in your original template.
|
data/lib/kitchen/driver/vmm.rb
CHANGED
@@ -20,6 +20,7 @@ module Kitchen
|
|
20
20
|
default_config :vm_host_group_name
|
21
21
|
default_config :vmm_server_address
|
22
22
|
default_config :vm_name, nil
|
23
|
+
default_config :vm_name_prefix, ''
|
23
24
|
default_config :vm_hardware_profile, ''
|
24
25
|
default_config :proxy_server_address, ''
|
25
26
|
default_config :ad_server, ''
|
@@ -75,7 +76,7 @@ module Kitchen
|
|
75
76
|
vmm_server_address: config[:vmm_server_address],
|
76
77
|
proxy_server_address: config[:proxy_server_address],
|
77
78
|
vm_hardware_profile: config[:vm_hardware_profile],
|
78
|
-
vm_name: config[:vm_name] || instance.name,
|
79
|
+
vm_name: "#{config[:vm_name_prefix]}#{config[:vm_name] || instance.name}",
|
79
80
|
vm_template_name: config[:vm_template_name],
|
80
81
|
vm_host_group_name: config[:vm_host_group_name],
|
81
82
|
ad_server: config[:ad_server],
|
@@ -85,6 +86,9 @@ module Kitchen
|
|
85
86
|
|
86
87
|
#
|
87
88
|
info("Creating and registering VM in the VMM (#{options[:vmm_server_address]})...")
|
89
|
+
if options[:proxy_server_address]
|
90
|
+
info("Using proxy: #{options[:proxy_server_address]}")
|
91
|
+
end
|
88
92
|
if options[:ad_server] && options[:ad_source_path] && options[:ad_target_path]
|
89
93
|
info(" ..and moving it under #{options[:ad_target_path]} after it's created.")
|
90
94
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-vmm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaroslav Gorjatsev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|