-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovider.tf
27 lines (24 loc) · 941 Bytes
/
provider.tf
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
terraform {
required_providers {
zentral = {
source = "zentralopensource/zentral"
}
}
backend "http" {
address = "https://psumac24-north-dakota.zentral.cloud/api/terraform/backend/starter_kit/"
lock_address = "https://psumac24-north-dakota.zentral.cloud/api/terraform/backend/starter_kit/lock/"
unlock_address = "https://psumac24-north-dakota.zentral.cloud/api/terraform/backend/starter_kit/lock/"
lock_method = "POST"
unlock_method = "DELETE"
}
}
// configure the provider
provider "zentral" {
// URL where the API endpoints are mounted in the Zentral deployment.
// The ZTL_API_BASE_URL environment variable can be used instead.
base_url = "https://${var.fqdn}/api/"
// Zentral service account (better) or user API token.
// This is a secret, it must be managed using a variable.
// The ZTL_API_TOKEN environment variable can be used instead.
token = var.api_token
}