Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelamattes committed May 10, 2022
2 parents a4393e8 + 7bfac42 commit 4d6530e
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
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)*
98 changes: 98 additions & 0 deletions README.md
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 -->

0 comments on commit 4d6530e

Please sign in to comment.