kitchen-azurerm 1.8.0 → 1.9.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
  SHA256:
3
- metadata.gz: 3b15b8e19fac4c6f6bf58cc6d346f9a9c31c8faf11d95465f4c54e2472f0c8cd
4
- data.tar.gz: 6373c26bd5e70bc53ffc03f90743ea2da8aa4d145ba3b2841c6bf510dfb25de3
3
+ metadata.gz: 6c84e17ddc3ec1792384a9431551ee9cd4b52029de7f5ff4d0aecd3015f5fd11
4
+ data.tar.gz: f9f2d8785858adfb74d7f7ee972813e53a6586faf237b540c2d03b754ffbc8d1
5
5
  SHA512:
6
- metadata.gz: 4c30c971dc9a1b1e285f5d7413f8ea39f81261d694e7723ef503156bb7395682407016d0966e38392c06f7981c55011ad57ea289a1219fe1f1da5a12d35e7e48
7
- data.tar.gz: 2da6c5540a4651423f09d49a0172d30d5529b6e3605e1a3035352d4d73904cda94106512d0593646a92a480bb3e6d48ab08494009bc8667f35200d030b08df82
6
+ metadata.gz: 9661160c16ff246a146d76fea20dd7adc5bdf8e150aa98df48f3aac93ed6987ba982fe4bdbe7271e31ddbd0c639460b0d7c88dd72c662ab057a34079bf6d8eb1
7
+ data.tar.gz: 60ef2893d64a6c778cc76de728bcc797abf5af734670d78bf62eeeb717704965aeb3fc49cd0e69cf4465aef1c729a25a80e7e6908fba1ab2a21b40fc7918ce90
@@ -218,10 +218,15 @@ module Kitchen
218
218
  false
219
219
  end
220
220
 
221
+ default_config(:zone) do |_config|
222
+ "1"
223
+ end
224
+
221
225
  def create(state)
222
226
  state = validate_state(state)
223
227
  deployment_parameters = {
224
228
  location: config[:location],
229
+ zone: config[:zone],
225
230
  vmSize: config[:machine_size],
226
231
  storageAccountType: config[:storage_account_type],
227
232
  bootDiagnosticsEnabled: config[:boot_diagnostics_enabled],
@@ -8,6 +8,18 @@
8
8
  "description": "The location where the resources will be created."
9
9
  }
10
10
  },
11
+ "zone": {
12
+ "type": "string",
13
+ "defaultValue": "1",
14
+ "allowedValues": [
15
+ "1",
16
+ "2",
17
+ "3"
18
+ ],
19
+ "metadata": {
20
+ "description": "Zone number for the virtual machine"
21
+ }
22
+ },
11
23
  "vmSize": {
12
24
  "type": "string",
13
25
  "metadata": {
@@ -208,6 +220,7 @@
208
220
  },
209
221
  "variables": {
210
222
  "location": "[parameters('location')]",
223
+ "zone": "[parameters('zone')]",
211
224
  "OSDiskName": "osdisk",
212
225
  "nicName": "[parameters('nicName')]",
213
226
  "addressPrefix": "10.0.0.0/16",
@@ -259,6 +272,9 @@
259
272
  "type": "Microsoft.Network/publicIPAddresses",
260
273
  "name": "[variables('publicIPAddressName')]",
261
274
  "location": "[variables('location')]",
275
+ "zones": [
276
+ "[variables('zone')]"
277
+ ],
262
278
  "sku": {
263
279
  "name": "[parameters('publicIPSKU')]"
264
280
  },
@@ -310,6 +326,9 @@
310
326
  "type": "Microsoft.Compute/virtualMachines",
311
327
  "name": "[variables('vmName')]",
312
328
  "location": "[variables('location')]",
329
+ "zones": [
330
+ "[variables('zone')]"
331
+ ],
313
332
  "dependsOn": [
314
333
  <%- unless use_managed_disks -%>
315
334
  <%- if existing_storage_account_blob_url.empty? -%>
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: 1.8.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Preston
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-27 00:00:00.000000000 Z
11
+ date: 2022-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure_mgmt_network
@@ -135,14 +135,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: '2.5'
138
+ version: '2.6'
139
139
  required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - ">="
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubygems_version: 3.2.22
145
+ rubygems_version: 3.2.32
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Test Kitchen driver for Azure Resource Manager.