-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
T-Systems MMS
committed
May 10, 2022
1 parent
ff3168e
commit 7bfac42
Showing
2 changed files
with
111 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Changelog | ||
|
||
## [1.0.0](https://github.com/T-Systems-MMS/terraform-azurerm-compute/tree/1.0.0) (2022-05-10) | ||
|
||
[Full Changelog](https://github.com/T-Systems-MMS/terraform-azurerm-compute/compare/b5b5566511fd11fe5d292cde3ffa0f537ffe48cd...1.0.0) | ||
|
||
**Merged pull requests:** | ||
|
||
- add renovate config [\#1](https://github.com/T-Systems-MMS/terraform-azurerm-compute/pull/1) ([michaelamattes](https://github.com/michaelamattes)) | ||
|
||
|
||
|
||
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)* |
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 |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<!-- BEGIN_TF_DOCS --> | ||
# compute | ||
|
||
This module manages Azure Compute Resources. | ||
|
||
<-- This file is autogenerated, please do not change. --> | ||
|
||
## Requirements | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| terraform | ~>1.1 | | ||
| azurerm | >=3.5 | | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| azurerm | >=3.5 | | ||
|
||
## Resources | ||
|
||
| Name | Type | | ||
|------|------| | ||
| azurerm_linux_virtual_machine.linux_virtual_machine | resource | | ||
| azurerm_managed_disk.managed_disk | resource | | ||
| azurerm_virtual_machine_data_disk_attachment.virtual_machine_data_disk_attachment | resource | | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| linux_virtual_machine | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | | ||
| managed_disk | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | | ||
| virtual_machine_data_disk_attachment | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| linux_virtual_machine | azurerm_linux_virtual_machine results | | ||
| managed_disk | azurerm_managed_disk results | | ||
|
||
## Examples | ||
|
||
```hcl | ||
module "compute" { | ||
source = "registry.terraform.io/T-Systems-MMS/compute/azurerm" | ||
linux_virtual_machine = { | ||
service-env-vm = { | ||
computer_name = "service-env-vm" | ||
location = "westeurope" | ||
resource_group_name = "service-env-rg" | ||
admin_username = "linux_root" | ||
size = "Standard_E4as_v4" | ||
network_interface_ids = [module.network.network_interface[service-env-vm].id] | ||
zone = 1 | ||
source_image_reference = { | ||
publisher = "OpenLogic" | ||
offer = "CentOS" | ||
sku = "7.6" | ||
version = "latest" | ||
} | ||
admin_ssh_key = { | ||
mgmt-vm = { | ||
public_key = "ssh-rsa SSH-KEY" | ||
username = "linux_root" | ||
} | ||
} | ||
tags = { | ||
service = "service_name" | ||
} | ||
} | ||
} | ||
managed_disk = { | ||
disk0 = { | ||
location = "westeurope" | ||
resource_group_name = "service-env-rg" | ||
storage_account_type = "Premium_LRS" | ||
create_option = "Empty" | ||
disk_size_gb = 50 | ||
zone = 1 | ||
tags = { | ||
service = "service_name" | ||
} | ||
} | ||
} | ||
virtual_machine_data_disk_attachment = { | ||
service-env-vm = { | ||
managed_disk_id = module.compute.managed_disk[disk0].id | ||
virtual_machine_id = module.compute.linux_virtual_machine[service-env-vm].id | ||
lun = 0 | ||
caching = "None" | ||
} | ||
} | ||
} | ||
``` | ||
<!-- END_TF_DOCS --> |