mirror of
				https://github.com/optim-enterprises-bv/terraform-talos.git
				synced 2025-10-31 02:08:32 +00:00 
			
		
		
		
	Name of image
This commit is contained in:
		| @@ -1,6 +1,6 @@ | |||||||
|  |  | ||||||
| data "azurerm_resource_group" "kubernetes" { | data "azurerm_resource_group" "kubernetes" { | ||||||
|   name = var.project |   name = var.resource_group | ||||||
| } | } | ||||||
|  |  | ||||||
| resource "random_id" "images" { | resource "random_id" "images" { | ||||||
| @@ -31,7 +31,7 @@ resource "azurerm_shared_image" "talos" { | |||||||
|   # specialized                         = true |   # specialized                         = true | ||||||
|  |  | ||||||
|   identifier { |   identifier { | ||||||
|     publisher = var.project |     publisher = var.name | ||||||
|     offer     = "Talos-${lower(each.key)}" |     offer     = "Talos-${lower(each.key)}" | ||||||
|     sku       = "1.0-dev" |     sku       = "1.0-dev" | ||||||
|   } |   } | ||||||
| @@ -61,7 +61,7 @@ resource "azurerm_storage_account" "images" { | |||||||
| } | } | ||||||
|  |  | ||||||
| resource "azurerm_storage_container" "images" { | resource "azurerm_storage_container" "images" { | ||||||
|   name                  = lower(var.project) |   name                  = lower(var.name) | ||||||
|   storage_account_name  = azurerm_storage_account.images.name |   storage_account_name  = azurerm_storage_account.images.name | ||||||
|   container_access_type = "private" |   container_access_type = "private" | ||||||
| } | } | ||||||
|   | |||||||
| @@ -4,8 +4,8 @@ variable "subscription_id" { | |||||||
|   type        = string |   type        = string | ||||||
| } | } | ||||||
|  |  | ||||||
| variable "project" { | variable "resource_group" { | ||||||
|   description = "The project name" |   description = "The existed resource group" | ||||||
|   type        = string |   type        = string | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -15,6 +15,12 @@ variable "regions" { | |||||||
|   default     = ["uksouth", "ukwest"] |   default     = ["uksouth", "ukwest"] | ||||||
| } | } | ||||||
|  |  | ||||||
|  | variable "name" { | ||||||
|  |   description = "The image name" | ||||||
|  |   type        = string | ||||||
|  |   default     = "talos" | ||||||
|  | } | ||||||
|  |  | ||||||
| variable "arch" { | variable "arch" { | ||||||
|   description = "The Talos architecture list" |   description = "The Talos architecture list" | ||||||
|   type        = list(string) |   type        = list(string) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Serge Logvinov
					Serge Logvinov