-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovider.tf
62 lines (48 loc) · 834 Bytes
/
provider.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
random = {
source = "hashicorp/random"
version = "~> 3.6"
}
}
}
variable "do_token" {
sensitive = true
}
variable "ssh_priv_path" {
}
variable "do_vpc" {
}
variable "do_ssh_key_name" {
}
variable "do_droplet_size" {
default = "s-1vcpu-1gb"
}
variable "do_droplet_region" {
default = "tor1"
}
variable "do_droplet_image" {
default = "ubuntu-22-04-x64"
}
variable "wg_droplet_ip" {
}
variable "wg_subnet" {
}
variable "wg_droplet_priv" {
sensitive = true
}
variable "wg_peer_pub" {
}
variable "wg_peer_endpoint" {
nullable = true
}
provider "digitalocean" {
token = var.do_token
}
data "digitalocean_ssh_key" "vpn_admin" {
name = var.do_ssh_key_name
}