blob: 7a258352a28a648afbef32581d3e9680683e6f93 (
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
|
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 "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
}
|