An open API service indexing awesome lists of open source software.

https://github.com/libre-devops/terraform-azurerm-windows-os-sku-with-plan-calculator

A module used to simplify the generation of image Azure marketplace image which contain the a dedicated Plan, such as CIS images. It works by passing a simple variable to this module will output the config items. Design to work with the Libre DevOps Windows VM module :rocket:
https://github.com/libre-devops/terraform-azurerm-windows-os-sku-with-plan-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 which contain the a dedicated Plan, such as CIS images. It works by passing a simple variable to this module will output the config items. Design to work with the Libre DevOps Windows VM module :rocket:

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-windows-os-sku-with-plan-calculator"

vm_os_simple = "CISWindowsServer2019L2" // will give you CIS WindowsServer2019 L2 sku properties, to be used in windows-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` |

{
"CISWindowsServer2012L2": "center-for-internet-security-inc,cis-windows-server-2012-r2-v2-2-1-l2,cis-ws2012-r2-l2",
"CISWindowsServer2016L1": "center-for-internet-security-inc,cis-windows-server-2016-v1-0-0-l1,cis-ws2016-l1",
"CISWindowsServer2016L2": "center-for-internet-security-inc,cis-windows-server-2016-v1-0-0-l2,cis-ws2016-l2",
"CISWindowsServer2019L1": "center-for-internet-security-inc,cis-windows-server-2019-v1-0-0-l1,cis-ws2019-l1",
"CISWindowsServer2019L2": "center-for-internet-security-inc,cis-windows-server-2019-v1-0-0-l2,cis-ws2019-l2"
}
| no |
| [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 |