[PATCH v3 02/36] terraform/azure: Fix count of managed disks
Chuck Lever <[email protected]>
| Newsgroups | dev.linux.lists.kdevops |
|---|---|
| Message-ID | <[email protected]> |
From: Chuck Lever <[email protected]> The Kconfig choice menu allows the selection of a single disk, but there was no default setting for that, causing the gen_tfvars playbook to fail with: ansible.errors.AnsibleUndefinedVariable: 'terraform_azure_managed_disks_per_instance' is undefined. Reviewed-by: Luis Chamberlain <[email protected]> Signed-off-by: Chuck Lever <[email protected]> --- terraform/azure/kconfigs/Kconfig.storage | 1 + 1 file changed, 1 insertion(+) diff --git a/terraform/azure/kconfigs/Kconfig.storage b/terraform/azure/kconfigs/Kconfig.storage index 5bfe1441c09c..d4885163a3b6 100644 --- a/terraform/azure/kconfigs/Kconfig.storage +++ b/terraform/azure/kconfigs/Kconfig.storage @@ -64,6 +64,7 @@ endchoice config TERRAFORM_AZURE_MANAGED_DISKS_PER_INSTANCE int output yaml + default 1 if TERRAFORM_AZURE_MANAGED_DISKS_PER_INSTANCE_1 default 2 if TERRAFORM_AZURE_MANAGED_DISKS_PER_INSTANCE_2 default 3 if TERRAFORM_AZURE_MANAGED_DISKS_PER_INSTANCE_3 default 4 if TERRAFORM_AZURE_MANAGED_DISKS_PER_INSTANCE_4 -- 2.51.0