Skip to content

Commit 4aa512e

Browse files
committed
test
1 parent e53b8a8 commit 4aa512e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

opentofu/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ terraform {
22
required_providers {
33
pihole = {
44
source = "ryanwholey/pihole"
5-
version = "~> 0.2.0"
5+
version = "2.0.0-beta.1"
66
}
77
vault = {
88
source = "hashicorp/vault"
9-
version = "4.8.0"
9+
version = "5.3.0"
1010
}
1111
}
12+
required_version = ">= 1.6.0"
1213
}
1314

1415
provider "pihole" {
1516
url = var.pihole_url
16-
api_token = data.vault_kv_secret_v2.pihole.data["api_token"] # API token recuperato da Vault
17+
password = data.vault_kv_secret_v2.pihole.data["api_token"]
1718
}
1819

1920
# Variabili di configurazione

opentofu/plan.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

opentofu/plan.tfplan

356 Bytes
Binary file not shown.

opentofu/vault.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ variable "vault_retry" {
4040
default = 2
4141
}
4242

43-
# Recupero dell'API token Pi-hole da Vault
4443
data "vault_kv_secret_v2" "pihole" {
45-
mount = "opentofu" # Modifica con il mount del tuo KV engine
46-
name = "pihole" # Modifica con il path del tuo secret
44+
mount = "opentofu"
45+
name = "pihole"
4746
}

0 commit comments

Comments
 (0)