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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddef39cb8309e0affd206a10630c35e33ce5bd43
4
- data.tar.gz: 67a0f80ef2fd65cb78dd3df31c07606f2008241d
3
+ metadata.gz: 95d6263c469eb9ab6b468a9d9cacdf3a66058dca
4
+ data.tar.gz: f816c2ae805759fef205d006ace6594bd4072d97
5
5
  SHA512:
6
- metadata.gz: 3dc3be63c98d84cb2b4ef9d7e5453bfe467cc4178d341c95316399259199ce10672e6f78be6ade1c0ab15251259f7c3e7ba0ef48429e572cd177a7b1ed5ca3aa
7
- data.tar.gz: 86f2209bb78208abb88dce712477039e8fc09b81e05a7d002e6ac938c1be00752220c027b4aab9899038500860ef17af7119a6f11e3a4d9b379c09f85610e484
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({'id' => state[:server_id]})
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)
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for Cloudstack Kitchen driver
24
- CLOUDSTACK_VERSION = "0.20.4"
24
+ CLOUDSTACK_VERSION = "0.21.0"
25
25
  end
26
26
  end
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.20.4
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-08-17 00:00:00.000000000 Z
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.2.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