Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Managed disk support for Azure terraform infra (#202)
Support adding managed disk to the Azure VMs created by the terraform testing infrastructure. By adding multiple managed disks to a VM, we can get significantly more space for data storage and also increase performance since the data is striped across multiple disks. * Modify the cloud-init module to accept an argument indicating the type of deployment (AWS or Azure) so that conditional blocks can be included in the cloud-init script. * cloud-init module now accepts an optional lvm_mount_point argument. If this argument is specified, then the cloud-init script will assume that managed disks were created and load a script on the VM and run it to wait for the disks to be attached, then group them in an LVM volume that is mounted under the specified mount point. * The azure main.tf file accepts a new managed_disk_configuration optional argument that contains the LVM mount point, and the number, size, and sku of managed disks to add to each VM. If this argument is specified, then the managed disks are created and attached to the VMs, and the lvm mount point and expected number of disks are passed along to the cloud-init module. Due to the way attaching managed disks are supported by Terraform (they must be attached after the VM is created, although Azure does not have this restriction), the provisioner script that waits for cloud-init to complete had to be moved outside of the VM creation to a null_resource. This null_resource must then be explicitly added as a dependency of any module that requires the manager or worker VMs to be created AND have cloud-init completed running. * Fix bug in Azure configuration where the script would fail if the create_resource_group variable was set to false (indicating that an existing resource group should be used instead of creating a new one). * Update the maven version to 3.8.5.
- Loading branch information
Showing
9 changed files
with
237 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -129,7 +129,7 @@ variable "accumulo_dir" { | ||
} | ||
|
||
variable "maven_version" { | ||
default = "3.8.4" | ||
default = "3.8.5" | ||
description = "The version of Maven to download and install" | ||
nullable = false | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.