kitchen-azurerm 0.12.3 → 0.12.4
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/CHANGELOG.md +3 -0
- data/README.md +1 -0
- data/lib/kitchen/driver/azurerm.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8145fa2cdf75254be6306af8c42507a1eeaeb848
|
|
4
|
+
data.tar.gz: 975d50e3c3108d19c1011f081978cfdf150eaa47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5289b8dfb96b5d1cd8bb6ac0b7f403a8b6520642ee67f0f4cfc8a7785c6be954f51a7b48ca80989449d2a187cae100019f990cefc92e914ff99e53e1a9176f9
|
|
7
|
+
data.tar.gz: 509b84ca09096619e04513ccfaa94b744e2649326f843bc99ae9bddf9156b1bd72cd21e83b1efe40286997c858869a0991a9f9e3c935b33b4c5b705029d8bfcd
|
data/CHANGELOG.md
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: inifile
|