-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.tf
More file actions
52 lines (47 loc) · 1.03 KB
/
main.tf
File metadata and controls
52 lines (47 loc) · 1.03 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
terraform {
required_providers {
proxmox = {
source = "bpg/proxmox"
version = "0.91.0"
}
bitwarden = {
source = "maxlaverse/bitwarden"
version = "0.16.0"
}
ct = {
source = "poseidon/ct"
version = "0.14.0"
}
null = {
source = "hashicorp/null"
version = "3.2.4"
}
local = {
source = "hashicorp/local"
version = "2.6.1"
}
homelab-helpers = {
source = "registry.terraform.io/savely-krasovsky/homelab-helpers"
version = "0.0.8"
}
}
}
provider "bitwarden" {
access_token = var.bws_access_token
experimental {
embedded_client = true
}
}
data "bitwarden_secret" "proxmox_password" {
id = var.proxmox_config.password_secret_id
}
provider "proxmox" {
endpoint = "https://${var.proxmox_config.host}:8006"
insecure = true
// Unfortunately Proxmox can execute a lot of actions only under root user...
username = "root@pam"
password = data.bitwarden_secret.proxmox_password.value
ssh {
agent = true
}
}