You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of this code is to supply the minimal ammount of information to quickly have working Ampere virtual machines on ["Azure"](https://azure.microsoft.com/en-us/).
32
32
Virtual machines are configured with a simple cloud-config using the Azure metadata provider APIs.
This can also be used as a terraform module. The [examples](examples) directory contains example code for module usage showing different operating systems booting with a custom cloud-init templates. Doing a clone of this repository and changing directory to one of the examples, placing a terraform.tfvars into that directory, and running a typical terrafornm workflow will produce a working virtual machine in the os that was specified in the main.tf that is located within the chosen example directory.
55
+
This can also be used as a OpenTofu or Terraform module. The [examples](examples) directory contains example code for module usage showing different operating systems booting with a custom cloud-init templates. Doing a clone of this repository and changing directory to one of the examples, placing a terraform.tfvars into that directory, and running a typical terrafornm workflow will produce a working virtual machine in the os that was specified in the main.tf that is located within the chosen example directory.
56
56
57
-
### Running Terraform
57
+
### Running using OpenTofu
58
58
59
59
```
60
-
terraform init && terraform plan && terraform apply -auto-approve
| <aname="input_address_space"></a> [address\_space](#input\_address\_space)| The address space that is used by the virtual network. You can supply more than one address space. Changing this forces a new resource to be created. |`string`|`"10.2.0.0/16"`| no |
326
-
| <aname="input_azure_os_image"></a> [azure\_os\_image](#input\_azure\_os\_image)| Default OS Image From the Local Vars |`string`|`"ubuntu2004"`| no |
| <aname="input_cloud_init_template_file"></a> [cloud\_init\_template\_file](#input\_cloud\_init\_template\_file)| Optional path for a cloud-init file |`string`|`null`| no |
329
-
| <aname="input_instance_prefix"></a> [instance\_prefix](#input\_instance\_prefix)| Name prefix for vm instances |`string`|`"azure-ampere-vm"`| no |
330
-
| <aname="input_location"></a> [location](#input\_location)| The location/region where the virtual network is created. Changing this forces a new resource to be created. |`string`|`"westus2"`| no |
331
-
| <aname="input_resource_group"></a> [resource\_group](#input\_resource\_group)| The name of the resource group in which to create the virtual network. |`string`|`"Terraform-Ampere-on-Azure"`| no |
332
-
| <aname="input_rg_prefix"></a> [rg\_prefix](#input\_rg\_prefix)| The shortened abbreviation to represent your resource group that will go on the front of some resources. |`string`|`"rg"`| no |
333
-
| <aname="input_subnet_prefix"></a> [subnet\_prefix](#input\_subnet\_prefix)| The address prefix to use for the subnet. |`string`|`"10.2.1.0/24"`| no |
334
-
| <aname="input_subscription_id"></a> [subscription\_id](#input\_subscription\_id)| Azure Credentials |`string`|`"Azure Subscription ID"`| no |
| <aname="input_tenant_id"></a> [tenant\_id](#input\_tenant\_id)| n/a |`string`|`"Azure Tenant ID"`| no |
337
-
| <aname="input_virtual_network_name"></a> [virtual\_network\_name](#input\_virtual\_network\_name)| The name for the virtual network. |`string`|`"vnet"`| no |
338
-
| <aname="input_vm_size"></a> [vm\_size](#input\_vm\_size)| Specifies the size of the Azure Ampere virtual machine. |`string`|`"Standard_D16ps_v5"`| no |
339
-
## Modules
340
-
341
-
No modules.
342
-
## Outputs
343
-
344
-
| Name | Description |
345
-
|------|-------------|
346
-
| <aname="output_azure_ampere_vm_private_ipaddresses"></a> [azure\_ampere\_vm\_private\_ipaddresses](#output\_azure\_ampere\_vm\_private\_ipaddresses)| Output the Azure VM(s)) private/internal ip address |
347
-
| <aname="output_azure_ampere_vm_public_ipaddresses"></a> [azure\_ampere\_vm\_public\_ipaddresses](#output\_azure\_ampere\_vm\_public\_ipaddresses)| Output the Azure VM(s)) public/external ip address |
348
-
| <aname="output_azure_ampere_vm_ssh_private_key"></a> [azure\_ampere\_vm\_ssh\_private\_key](#output\_azure\_ampere\_vm\_ssh\_private\_key)| Output the Azure SSH private key |
349
-
| <aname="output_azure_ampere_vm_ssh_public_key"></a> [azure\_ampere\_vm\_ssh\_public\_key](#output\_azure\_ampere\_vm\_ssh\_public\_key)| Output the Azure SSH public key |
350
-
| <aname="output_azure_current_subscription_display_name"></a> [azure\_current\_subscription\_display\_name](#output\_azure\_current\_subscription\_display\_name)| Output the Display Name for the current Azure Subscription |
351
-
| <aname="output_azure_ssh_private_key"></a> [azure\_ssh\_private\_key](#output\_azure\_ssh\_private\_key)| output the Azure SSH private key |
352
-
| <aname="output_azure_ssh_pubic_key"></a> [azure\_ssh\_pubic\_key](#output\_azure\_ssh\_pubic\_key)| output the Azure SSH public key |
353
-
| <aname="output_random_uuid"></a> [random\_uuid](#output\_random\_uuid)| Output: A randomly generated uuid |
0 commit comments