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:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-azurerm-os-calculator

Heavily inspired form Terraform Azure Compute Module

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

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

Requirements

No requirements.

Providers

No providers.

Modules

No modules.

Resources

No resources.

Inputs

Name Description Type Default Required
standard_os n/a map
{
"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"
}
no
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 Gets the offer value
calculated_value_os_publisher Gets the offer value
calculated_value_os_sku Gets the OS value

About

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:

License:MIT License


Languages

Language:Shell 64.1%Language:PowerShell 19.3%Language:HCL 16.7%