mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	backport of commit d634700c9e (#22965)
				
					
				
			Co-authored-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
		 hc-github-team-secure-vault-core
					hc-github-team-secure-vault-core
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							8ba68ca4c2
						
					
				
				
					commit
					8a37264de0
				
			| @@ -3,26 +3,12 @@ locals { | |||||||
|   // file name extensions for the install packages of vault for the various architectures, distributions and editions |   // file name extensions for the install packages of vault for the various architectures, distributions and editions | ||||||
|   package_extensions = { |   package_extensions = { | ||||||
|     amd64 = { |     amd64 = { | ||||||
|       ubuntu = { |       ubuntu = "-1_amd64.deb" | ||||||
|         # "oss"     = "-1_amd64.deb" |       rhel   = "-1.x86_64.rpm" | ||||||
|         "ent"     = "-1_amd64.deb" |  | ||||||
|         "ent.hsm" = "-1_amd64.deb" |  | ||||||
|       } |  | ||||||
|       rhel = { |  | ||||||
|         # "oss"     = "-1.x86_64.rpm" |  | ||||||
|         "ent"     = "-1.x86_64.rpm" |  | ||||||
|         "ent.hsm" = "-1.x86_64.rpm" |  | ||||||
|       } |  | ||||||
|     } |     } | ||||||
|     arm64 = { |     arm64 = { | ||||||
|       ubuntu = { |       ubuntu = "-1_arm64.deb" | ||||||
|         # "oss" = "-1_arm64.deb" |       rhel   = "-1.aarch64.rpm" | ||||||
|         "ent" = "-1_arm64.deb" |  | ||||||
|       } |  | ||||||
|       rhel = { |  | ||||||
|         # "oss" = "-1.aarch64.rpm" |  | ||||||
|         "ent" = "-1.aarch64.rpm" |  | ||||||
|       } |  | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
| @@ -34,17 +20,19 @@ locals { | |||||||
|     ubuntu = { |     ubuntu = { | ||||||
|       "oss"              = "vault_" |       "oss"              = "vault_" | ||||||
|       "ent"              = "vault-enterprise_", |       "ent"              = "vault-enterprise_", | ||||||
|  |       "ent.fips1402"     = "vault-enterprise-fips1402_", | ||||||
|       "ent.hsm"          = "vault-enterprise-hsm_", |       "ent.hsm"          = "vault-enterprise-hsm_", | ||||||
|  |       "ent.hsm.fips1402" = "vault-enterprise-hsm-fips1402_", | ||||||
|     }, |     }, | ||||||
|     rhel = { |     rhel = { | ||||||
|       "oss"              = "vault-" |       "oss"              = "vault-" | ||||||
|       "ent"              = "vault-enterprise-", |       "ent"              = "vault-enterprise-", | ||||||
|  |       "ent.fips1402"     = "vault-enterprise-fips1402-", | ||||||
|       "ent.hsm"          = "vault-enterprise-hsm-", |       "ent.hsm"          = "vault-enterprise-hsm-", | ||||||
|  |       "ent.hsm.fips1402" = "vault-enterprise-hsm-fips1402-", | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   artifact_types = ["package", "bundle"] |  | ||||||
|  |  | ||||||
|   // edition --> artifact name edition |   // edition --> artifact name edition | ||||||
|   artifact_name_edition = { |   artifact_name_edition = { | ||||||
|     "oss"              = "" |     "oss"              = "" | ||||||
| @@ -55,6 +43,6 @@ locals { | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   artifact_name_prefix    = var.artifact_type == "package" ? local.artifact_package_release_names[var.distro][var.edition] : "vault_" |   artifact_name_prefix    = var.artifact_type == "package" ? local.artifact_package_release_names[var.distro][var.edition] : "vault_" | ||||||
|   artifact_name_extension = var.artifact_type == "package" ? local.package_extensions[var.arch][var.distro][var.edition] : "_linux_${var.arch}.zip" |   artifact_name_extension = var.artifact_type == "package" ? local.package_extensions[var.arch][var.distro] : "_linux_${var.arch}.zip" | ||||||
|   artifact_name           = var.artifact_type == "package" ? "${local.artifact_name_prefix}${replace(local.artifact_version, "-", "~")}${local.artifact_name_extension}" : "${local.artifact_name_prefix}${var.product_version}${local.artifact_name_extension}" |   artifact_name           = var.artifact_type == "package" ? "${local.artifact_name_prefix}${replace(local.artifact_version, "-", "~")}${local.artifact_name_extension}" : "${local.artifact_name_prefix}${var.product_version}${local.artifact_name_extension}" | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user