fix usage example formatting
This commit is contained in:
David Tesar 2017-10-11 09:47:35 -07:00 коммит произвёл GitHub
Родитель 5203610f37 fd83e78325
Коммит 40c0043947
1 изменённых файлов: 27 добавлений и 29 удалений

Просмотреть файл

@ -16,37 +16,35 @@ Usage
Provisions 2 Windows 2016 Datacenter Server VMs using `vm_os_simple` to a new VNet and opens up port 3389 for RDP access:
```hcl
module "mycompute" {
source = "Azure/compute/azurerm"
resource_group_name = "mycompute"
location = "East US 2"
admin_password = ComplxP@ssw0rd!
vm_os_simple = "WindowsServer"
public_ip_dns = "mywinsrv252"
remote_port = "3389"
nb_instances = 2
vnet_subnet_id = "${module.network.vnet_subnets[0]}"
}
module "network" {
source = "Azure/network/azurerm"
location = "East US 2"
resource_group_name = "mycompute"
}
output "vm_public_name"{
value = "${module.mycompute.public_ip_dns_name}"
}
output "vm_public_ip" {
value = "${module.mycompute.public_ip_address}"
}
output "vm_private_ips" {
value = "${module.mycompute.network_interface_private_ip}"
}
module "mycompute" {
source = "Azure/compute/azurerm"
resource_group_name = "mycompute"
location = "East US 2"
admin_password = "ComplxP@ssw0rd!"
vm_os_simple = "WindowsServer"
public_ip_dns = "mywinsrv252"
remote_port = "3389"
nb_instances = 2
vnet_subnet_id = "${module.network.vnet_subnets[0]}"
}
module "network" {
source = "Azure/network/azurerm"
location = "East US 2"
resource_group_name = "mycompute"
}
output "vm_public_name"{
value = "${module.mycompute.public_ip_dns_name}"
}
output "vm_public_ip" {
value = "${module.mycompute.public_ip_address}"
}
output "vm_private_ips" {
value = "${module.mycompute.network_interface_private_ip}"
}
```
Provisions 2 Ubuntu 14.04 Server VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` to a new VNet and opens up port 22 for SSH access with ~/.ssh/id_rsa.pub :