-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade to v0.12 * add comment for test * add comment for test * remove useless test code * change bool type * remove useless import * add os back
- Loading branch information
Showing
8 changed files
with
160 additions
and
212 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,41 @@ | ||
provider "random" { | ||
version = "~> 1.0" | ||
} | ||
|
||
resource "random_id" "ip_dns" { | ||
byte_length = 8 | ||
} | ||
|
||
module "ubuntuservers" { | ||
source = "../../" | ||
location = "${var.location}" | ||
admin_username = "${var.admin_username}" | ||
admin_password = "${var.admin_password}" | ||
vm_os_simple = "${var.vm_os_simple_1}" | ||
location = var.location | ||
admin_username = var.admin_username | ||
admin_password = var.admin_password | ||
vm_os_simple = var.vm_os_simple_1 | ||
public_ip_dns = ["ubuntusimplevmips-${random_id.ip_dns.hex}"] | ||
vnet_subnet_id = "${module.network.vnet_subnets[0]}" | ||
ssh_key = "${var.ssh_key}" | ||
vnet_subnet_id = module.network.vnet_subnets[0] | ||
ssh_key = var.ssh_key | ||
resource_group_name = "${var.resource_group_name}-${random_id.ip_dns.hex}" | ||
public_ip_address_allocation = "static" | ||
allocation_method = "Static" | ||
enable_accelerated_networking = "true" | ||
vm_size = "Standard_DS2_V2" | ||
} | ||
|
||
module "debianservers" { | ||
source = "../../" | ||
location = "${var.location}" | ||
location = var.location | ||
vm_hostname = "mylinvm" | ||
admin_username = "${var.admin_username}" | ||
admin_password = "${var.admin_password}" | ||
custom_data = "${var.custom_data}" | ||
vm_os_simple = "${var.vm_os_simple_2}" | ||
admin_username = var.admin_username | ||
admin_password = var.admin_password | ||
custom_data = var.custom_data | ||
vm_os_simple = var.vm_os_simple_2 | ||
public_ip_dns = ["debiansimplevmips-${random_id.ip_dns.hex}"] // change to a unique name per datacenter region | ||
vnet_subnet_id = "${module.network.vnet_subnets[0]}" | ||
ssh_key = "${var.ssh_key}" | ||
vnet_subnet_id = module.network.vnet_subnets[0] | ||
ssh_key = var.ssh_key | ||
resource_group_name = "${var.resource_group_name}-${random_id.ip_dns.hex}" | ||
public_ip_address_allocation = "static" | ||
allocation_method = "Static" | ||
} | ||
|
||
module "network" { | ||
source = "Azure/network/azurerm" | ||
version = "2.0.0" | ||
location = "westus2" | ||
subnet_names = ["subnet1"] | ||
resource_group_name = "${var.resource_group_name}-${random_id.ip_dns.hex}" | ||
} | ||
} |
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