Add netbox provider configuration and secret management
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
secret.tfvars
|
||||
1
secrets.tfvars
Normal file
1
secrets.tfvars
Normal file
@@ -0,0 +1 @@
|
||||
netbox_token="7ce0d0b83c87c6ce79ac31a919b0fe9f95ff59de"
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user