Complete rewrite of the module to deploy a Renovate bot for automated dependency management with Gitea integration. Breaking Changes: - Module purpose changed from Ansible EDA to Renovate bot - All variables restructured for Renovate configuration - State file path updated to home/docker/renovate/renovate.tfstate - Volumes changed from EDA rulebooks/logs to config/cache - Container image now uses renovate/renovate:latest Added: - Gitea platform integration with token authentication - Renovate configuration template (config.js.tpl) - Repository configuration examples - Gitea Actions workflow examples - SonarQube integration examples - Comprehensive documentation (README, QUICKSTART, MIGRATION_GUIDE) - CHANGELOG.md for version tracking - Security best practices Removed: - All Ansible EDA-specific configuration - Traefik labels (not needed for Renovate) - Old EDA documentation files - example-rulebook.yml Updated: - Complete README with Gitea setup instructions - terraform.tfvars with Renovate configuration - All resource names from ansible_eda to renovate - Backend state path This is version 2.0.0 - not backward compatible with previous EDA version. See MIGRATION_GUIDE.md for detailed migration instructions.
42 lines
923 B
HCL
42 lines
923 B
HCL
terraform {
|
|
required_providers {
|
|
docker = {
|
|
source = "kreuzwerker/docker"
|
|
version = "3.0.2"
|
|
}
|
|
vault = {
|
|
source = "hashicorp/vault"
|
|
version = "3.25.0"
|
|
}
|
|
}
|
|
}
|
|
|
|
# Configure the DNS Provider
|
|
provider "dns" {
|
|
update {
|
|
server = data.vault_generic_secret.dns.data["dns_server"]
|
|
key_name = data.vault_generic_secret.dns.data["key_name"]
|
|
key_algorithm = data.vault_generic_secret.dns.data["key_algorithm"]
|
|
key_secret = data.vault_generic_secret.dns.data["key_secret"]
|
|
}
|
|
}
|
|
|
|
# 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
|
|
}
|
|
}
|
|
}
|