blob: ca9edddb42d47b69bc938e655f035d91d75e5a20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
variable "cloudflare_account_id" {
type = string
}
variable "cloudflare_getchoo_com_zone_id" {
type = string
}
provider "cloudflare" {
api_token = data.hcp_vault_secrets_app.borealis.secrets.cloudflare_api_token
}
variable "oracle_fingerprint" {
type = string
}
variable "oracle_region" {
type = string
}
variable "oracle_tenancy_ocid" {
type = string
}
variable "oracle_user_ocid" {
type = string
}
provider "oci" {
fingerprint = var.oracle_fingerprint
# NOTE: Base64-encoded to avoid newlines, etc.
# https://github.com/oracle/terraform-provider-oci/issues/2198
private_key = base64decode(data.hcp_vault_secrets_app.borealis.secrets.oracle_private_key)
region = var.oracle_region
tenancy_ocid = var.oracle_tenancy_ocid
user_ocid = var.oracle_user_ocid
}
variable "hcp_client_id" {
type = string
}
variable "hcp_client_secret" {
type = string
}
variable "vault_app" {
type = string
default = "borealis"
}
provider "hcp" {
client_id = var.hcp_client_id
client_secret = var.hcp_client_secret
}
data "hcp_vault_secrets_app" "borealis" {
app_name = var.vault_app
}
variable "tailscale_tailnet" {
type = string
}
provider "tailscale" {
oauth_client_id = data.hcp_vault_secrets_app.borealis.secrets.tailscale_oauth_client_id
oauth_client_secret = data.hcp_vault_secrets_app.borealis.secrets.tailscale_oauth_client_secret
tailnet = var.tailscale_tailnet
}
|