this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(infra): only include provider matching cloud

Khue Doan 43591cec f4376377

+29 -12
+29 -12
infra/production/root.hcl
··· 1 1 locals { 2 2 secrets = yamldecode(sops_decrypt_file(find_in_parent_folders("secrets.yaml"))) 3 3 env = "production" 4 + cloud = split("/", path_relative_to_include())[0] 4 5 } 5 6 6 7 generate "backend" { ··· 35 36 path = "provider.tf.json" 36 37 if_exists = "overwrite" 37 38 disable_signature = true 38 - contents = jsonencode({ 39 - provider = { 40 - oci = { 41 - tenancy_ocid = local.secrets.oracle_tenancy_ocid 42 - user_ocid = local.secrets.oracle_user_ocid 43 - fingerprint = local.secrets.oracle_fingerprint 44 - private_key = local.secrets.oracle_private_key 45 - region = local.secrets.oracle_region 39 + 40 + contents = jsonencode(lookup( 41 + { 42 + oracle = { 43 + provider = { 44 + oci = { 45 + tenancy_ocid = local.secrets.oracle_tenancy_ocid 46 + user_ocid = local.secrets.oracle_user_ocid 47 + fingerprint = local.secrets.oracle_fingerprint 48 + private_key = local.secrets.oracle_private_key 49 + region = local.secrets.oracle_region 50 + } 51 + } 52 + } 53 + hetzner = { 54 + provider = { 55 + hcloud = {} 56 + } 46 57 } 47 58 proxmox = { 48 - endpoint = "https://proxmox:8006" 49 - insecure = true 59 + provider = { 60 + proxmox = { 61 + endpoint = "https://proxmox:8006" 62 + insecure = true 63 + } 64 + } 50 65 } 51 - } 52 - }) 66 + }, 67 + local.cloud, 68 + {} 69 + )) 53 70 }