-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathprovider.tf
More file actions
55 lines (50 loc) · 1.25 KB
/
Copy pathprovider.tf
File metadata and controls
55 lines (50 loc) · 1.25 KB
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
terraform {
backend "s3" {
bucket = "tofu"
region = "us-east-1"
key = "proxmox.tfstate"
endpoint = "https://s3.mafyuh.xyz"
skip_region_validation = true
skip_credentials_validation = true
skip_requesting_account_id = true
use_path_style = true
skip_s3_checksum = true
skip_metadata_api_check = true
}
required_providers {
proxmox = {
source = "bpg/proxmox"
version = "0.85.0"
}
bitwarden = {
source = "maxlaverse/bitwarden"
version = "0.16.0"
}
}
}
provider "proxmox" {
endpoint = "https://prox.mafyuh.xyz/"
api_token = data.bitwarden_secret.prox_api_key.value
insecure = false
random_vm_ids = true
ssh {
agent = true
## TODO: stop using root
username = "root"
password = data.bitwarden_secret.ssh_password.value
node {
name = "prox"
address = data.bitwarden_secret.prox_ip_address.value
}
node {
name = "pve2"
address = data.bitwarden_secret.pve2_ip_address.value
}
}
}
provider "bitwarden" {
access_token = var.access_token
experimental {
embedded_client = true
}
}