2024-05-25 05:32:38 +02:00

33 lines
730 B
HCL

# Description: This file is used to configure the Docker and Vault providers.
terraform {
required_providers {
docker = {
source = "abh80/docker"
version = "1.0.1"
}
vault = {
source = "hashicorp/vault"
version = "3.25.0"
}
}
}
# Configure the Docker provider
provider "docker" {
host = "tcp://192.168.2.170:2376"
cert_path = pathexpand("~/.docker")
}
# Configure the Vault provider
provider "vault" {
address = "https://wbyc-srv-docker01.bsdserver.lan:8200"
auth_login {
path = "auth/approle/login"
parameters = {
role_id = var.role_id
secret_id = var.secret_id
}
}
}