-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.tf
41 lines (37 loc) · 1.04 KB
/
bootstrap.tf
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
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
}
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
provider "digitalocean" {
token = var.digitalocean_token
}
provider "cloudflare" {
api_token = var.cloudflare_api_token
account_id = var.cloudflare_account_id
}
locals {
cloudflare_fqdn = format("%s.%s",var.cloudflare_cname_record,var.cloudflare_domain)
user_from_mail = split("@", var.user_email)[0]
}
variable "digitalocean_token" {}
variable "digitalocean_droplet_image" {}
variable "digitalocean_droplet_region" {}
variable "digitalocean_droplet_size" {}
variable "digitalocean_key_name" {}
variable "digitalocean_priv_key_path" {}
variable "cloudflare_domain" {}
variable "cloudflare_account_id" {}
variable "cloudflare_tunnel_secret" {}
variable "cloudflare_cname_record" {}
variable "cloudflare_api_token" {}
variable "github_oauth_client_id" {}
variable "github_oauth_client_secret" {}
variable "user_email" {}