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" { | ||||
|   name = var.project | ||||
|   name = var.resource_group | ||||
| } | ||||
|  | ||||
| resource "random_id" "images" { | ||||
| @@ -31,7 +31,7 @@ resource "azurerm_shared_image" "talos" { | ||||
|   # specialized                         = true | ||||
|  | ||||
|   identifier { | ||||
|     publisher = var.project | ||||
|     publisher = var.name | ||||
|     offer     = "Talos-${lower(each.key)}" | ||||
|     sku       = "1.0-dev" | ||||
|   } | ||||
| @@ -61,7 +61,7 @@ resource "azurerm_storage_account" "images" { | ||||
| } | ||||
|  | ||||
| resource "azurerm_storage_container" "images" { | ||||
|   name                  = lower(var.project) | ||||
|   name                  = lower(var.name) | ||||
|   storage_account_name  = azurerm_storage_account.images.name | ||||
|   container_access_type = "private" | ||||
| } | ||||
|   | ||||
| @@ -4,8 +4,8 @@ variable "subscription_id" { | ||||
|   type        = string | ||||
| } | ||||
|  | ||||
| variable "project" { | ||||
|   description = "The project name" | ||||
| variable "resource_group" { | ||||
|   description = "The existed resource group" | ||||
|   type        = string | ||||
| } | ||||
|  | ||||
| @@ -15,6 +15,12 @@ variable "regions" { | ||||
|   default     = ["uksouth", "ukwest"] | ||||
| } | ||||
|  | ||||
| variable "name" { | ||||
|   description = "The image name" | ||||
|   type        = string | ||||
|   default     = "talos" | ||||
| } | ||||
|  | ||||
| variable "arch" { | ||||
|   description = "The Talos architecture list" | ||||
|   type        = list(string) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Serge Logvinov
					Serge Logvinov