Add netbox provider configuration and secret management

This commit is contained in:
2025-12-22 23:00:54 +01:00
parent eab6b40eca
commit fcc9bf60be
3 changed files with 13 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
secret.tfvars

1
secrets.tfvars Normal file
View File

@@ -0,0 +1 @@
netbox_token="7ce0d0b83c87c6ce79ac31a919b0fe9f95ff59de"

View File

@@ -10,3 +10,14 @@ terraform {
}
}
}
variable netbox_token {
type = string
description = "netbox api token"
sensitive = true
}
provider "netbox" {
url = http://91.98.205.65:8000
token = var.netbox_token
}