https://github.com/libre-devops/terraform-azurerm-linux-os-sku-calculator
A module used to simplify the generation of image Azure marketplace image, passing a simple variable to this module will output the config items. Design to work with the Libre DevOps Linux VM module :rocket:
https://github.com/libre-devops/terraform-azurerm-linux-os-sku-calculator
azure azurerm azurerm-terraform-provider module terraform terraform-module
Last synced: 2 months ago
JSON representation
A module used to simplify the generation of image Azure marketplace image, passing a simple variable to this module will output the config items. Design to work with the Libre DevOps Linux VM module :rocket:
- Host: GitHub
- URL: https://github.com/libre-devops/terraform-azurerm-linux-os-sku-calculator
- Owner: libre-devops
- License: mit
- Created: 2022-04-18T11:17:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-09T21:19:31.000Z (about 1 year ago)
- Last Synced: 2024-12-26T16:12:12.762Z (4 months ago)
- Topics: azure, azurerm, azurerm-terraform-provider, module, terraform, terraform-module
- Language: Shell
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-azurerm-os-calculator
[Heavily inspired form Terraform Azure Compute Module](https://github.com/Azure/terraform-azurerm-compute)Designed to be used with Libre DevOps VM modules, and will simplify the way of getting SKUs for your VM images without having to look it up.
Simple pass the OS you want to the variable, and it will output the values of the publisher, offer and SKU. All versions are latest
```hcl
module "os_calculator" {
source = "github.com/libre-devops/terraform-azurerm-linux-os-sku-calculator"vm_os_simple = "Debian11" // will give you Debian11 sku properties, to be used in linux-vm module
}
```For a full example build, check out the [Libre DevOps Website](https://www.libredevops.org/quickstart/utils/terraform/using-lbdo-tf-modules-example.html)
## Requirements
No requirements.
## Providers
No providers.
## Modules
No modules.
## Resources
No resources.
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [standard\_os](#input\_standard\_os) | n/a | `map` |{| no |
"CentOS7": "OpenLogic,CentOS,7_8",
"CentOS8": "OpenLogic,CentOS,8_5",
"Debian10": "Debian,debian-10,10",
"Debian11": "Debian,debian-11,11",
"FlatcarFree": "kinvolk,flatcar-container-linux-free,stable",
"FlatcarPro": "kinvolk,flatcar_pro,stable",
"OracleLinux7": "Oracle,Oracle-Linux,ol79",
"OracleLinux8": "Oracle,Oracle-Linux,ol82",
"RHEL7": "RedHat,RHEL,7_9",
"RHEL8": "RedHat,RHEL,8_5",
"SLES12": "SUSE,SLES,12-sp4-gen2",
"Ubuntu16.04": "Canonical,UbuntuServer,16.04-LTS",
"Ubuntu18.04": "Canonical,UbuntuServer,18.04-LTS",
"Ubuntu20.04": "Canonical,0001-com-ubuntu-server-focal,20_04-lts",
"Ubuntu22.04": "Canonical,0001-com-ubuntu-server-jammy-daily,22_04-daily-lts",
"openSuse15": "SUSE,openSUSE-Leap,15-2"
}
| [vm\_os\_simple](#input\_vm\_os\_simple) | If using this module, pass one of the keys as the variable to get that image properties | `string` | `""` | no |## Outputs
| Name | Description |
|------|-------------|
| [calculated\_value\_os\_offer](#output\_calculated\_value\_os\_offer) | Gets the offer value |
| [calculated\_value\_os\_publisher](#output\_calculated\_value\_os\_publisher) | Gets the offer value |
| [calculated\_value\_os\_sku](#output\_calculated\_value\_os\_sku) | Gets the OS value |