kitchen-azurerm 0.12.3 → 0.12.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 483f270d4a2edc1be6794c9eb4978fa84ed3d301
4
- data.tar.gz: 786e65c2857e99cab82c1a2cef10af537dedd611
3
+ metadata.gz: 8145fa2cdf75254be6306af8c42507a1eeaeb848
4
+ data.tar.gz: 975d50e3c3108d19c1011f081978cfdf150eaa47
5
5
  SHA512:
6
- metadata.gz: ec3618eb1b24ed890a4f0a2bf36031f178adc7ed6e2024dab9316085fa754078e95132ee660845c983dfcea7ddd79028c354db9e575c4bdc8bea4a554e23f4f4
7
- data.tar.gz: d84a6253c077fc44e2bb07005b6e44be57f7b5d5c0f88b13ecb8b0023d4488b0acb87af733fa25a61d9b9a2a2e81139a9cf52f997f033502dd2aa3e58978014a
6
+ metadata.gz: d5289b8dfb96b5d1cd8bb6ac0b7f403a8b6520642ee67f0f4cfc8a7785c6be954f51a7b48ca80989449d2a187cae100019f990cefc92e914ff99e53e1a9176f9
7
+ data.tar.gz: 509b84ca09096619e04513ccfaa94b744e2649326f843bc99ae9bddf9156b1bd72cd21e83b1efe40286997c858869a0991a9f9e3c935b33b4c5b705029d8bfcd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # kitchen-azurerm Changelog
2
2
 
3
+ ## [0.12.4] - 2017-11-17
4
+ - Adding `explicit_resource_group_name` property to driver configuration
5
+
3
6
  ## [0.12.3] - 2017-10-18
4
7
  - Pinning to version 0.14.0 of Microsoft Azure SDK for Ruby, avoid namespace changes
5
8
 
data/README.md CHANGED
@@ -491,6 +491,7 @@ info: vm image list command OK
491
491
  - The ```custom_data``` parameter can be used to specify custom data to provide to the instance. This can be a file or the data itself. This module handles base64 encoding for you.
492
492
  - The ```os_disk_size_gb``` parameter can be used to specify a custom os disk size.
493
493
  - The ```azure_resource_group_prefix``` and ```azure_resource_group_suffix``` can be used to further disambiguate Azure resource group names created by the driver.
494
+ - The ```explicit_resource_group_name``` parameters can be used in scenarios where you are provided a pre-created Resource Group. Example usage: ```explicit_resource_group_name: kitchen-<%= ENV["USERNAME"] %>```
494
495
 
495
496
  ## Contributing
496
497
 
@@ -30,6 +30,10 @@ module Kitchen
30
30
  config.instance.name.to_s
31
31
  end
32
32
 
33
+ default_config(:explicit_resource_group_name) do |_config|
34
+ nil
35
+ end
36
+
33
37
  default_config(:image_urn) do |_config|
34
38
  'Canonical:UbuntuServer:14.04.3-LTS:latest'
35
39
  end
@@ -254,7 +258,8 @@ module Kitchen
254
258
 
255
259
  def azure_resource_group_name
256
260
  formatted_time = Time.now.utc.strftime '%Y%m%dT%H%M%S'
257
- "#{config[:azure_resource_group_prefix]}#{config[:azure_resource_group_name]}-#{formatted_time}#{config[:azure_resource_group_suffix]}"
261
+ return "#{config[:azure_resource_group_prefix]}#{config[:azure_resource_group_name]}-#{formatted_time}#{config[:azure_resource_group_suffix]}" unless config[:explicit_resource_group_name]
262
+ config[:explicit_resource_group_name]
258
263
  end
259
264
 
260
265
  def data_disks_for_vm_json
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-azurerm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.3
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Preston
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-18 00:00:00.000000000 Z
11
+ date: 2017-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inifile