kitchen-cloudstack 0.20.4 → 0.21.0
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 +4 -4
- data/README.md +1 -0
- data/lib/kitchen/driver/cloudstack.rb +12 -1
- data/lib/kitchen/driver/cloudstack_version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95d6263c469eb9ab6b468a9d9cacdf3a66058dca
|
4
|
+
data.tar.gz: f816c2ae805759fef205d006ace6594bd4072d97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97c3f023c158a93b9d386d38f29cd6fb8e3f262902bdfd0fd1513b2ef81e8ca544a1167893447dfa2f0bee26a97d5104ed3026f519629a02e110667405623768
|
7
|
+
data.tar.gz: 4d273c1a715598968890cf4ef284b4138b0c077ea6dc1ecfd71cf0008fc9245c1a75328874f844585e57fefdfccb667f0c877cea1645f73ccb6d71dfcc501abb
|
data/README.md
CHANGED
@@ -22,6 +22,7 @@ Provide, at a minimum, the required driver options in your `.kitchen.yml` file:
|
|
22
22
|
cloudstack_api_url: [YOUR CLOUDSTACK API URL]
|
23
23
|
require_chef_omnibus: latest (if you'll be using Chef)
|
24
24
|
OPTIONAL
|
25
|
+
cloudstack_expunge: [TRUE/FALSE] # Whether or not you want the instance to be expunged, default false.
|
25
26
|
cloudstack_sync_time: [NUMBER OF SECONDS TO WAIT FOR CLOUD-SET-GUEST-PASSWORD/SSHKEY]
|
26
27
|
keypair_search_directory: [PATH TO DIRECTORY (other than ~, ., and ~/.ssh) WITH KEYPAIR PEM FILE]
|
27
28
|
cloudstack_vm_public_ip: [PUBLIC_IP] # In case you use advanced networking and do static NAT manually.
|
@@ -190,8 +190,19 @@ module Kitchen
|
|
190
190
|
return unless state[:server_id]
|
191
191
|
debug("Destroying #{state[:server_id]}")
|
192
192
|
server = compute.servers.get(state[:server_id])
|
193
|
+
expunge =
|
194
|
+
if !!config[:cloudstack_expunge] == config[:cloudstack_expunge]
|
195
|
+
config[:cloudstack_expunge]
|
196
|
+
else
|
197
|
+
false
|
198
|
+
end
|
193
199
|
if server
|
194
|
-
compute.destroy_virtual_machine(
|
200
|
+
compute.destroy_virtual_machine(
|
201
|
+
{
|
202
|
+
'id' => state[:server_id],
|
203
|
+
'expunge' => expunge
|
204
|
+
}
|
205
|
+
)
|
195
206
|
end
|
196
207
|
info("CloudStack instance <#{state[:server_id]}> destroyed.")
|
197
208
|
state.delete(:server_id)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-cloudstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Moody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
175
|
rubyforge_project:
|
176
|
-
rubygems_version: 2.
|
176
|
+
rubygems_version: 2.4.5.1
|
177
177
|
signing_key:
|
178
178
|
specification_version: 4
|
179
179
|
summary: Provides an interface for Test Kitchen to be able to run jobs against an
|