- Ansible: basic, with-exporter, with-notifications, enterprise playbooks - Kubernetes: CronJob, ConfigMap, ServiceMonitor, PVC manifests - Prometheus: alerting rules (RPO/RTO/failure) and scrape configs - Terraform: AWS S3 bucket with lifecycle policies - Scripts: GFS backup rotation and health check (Nagios compatible) All playbooks support: - Scheduled backups with systemd timers - GFS retention policies - Prometheus metrics exporter - SMTP/Slack/webhook notifications - Encrypted backups with cloud upload
27 lines
475 B
HCL
27 lines
475 B
HCL
# dbbackup Terraform - AWS Example
|
|
|
|
variable "aws_region" {
|
|
default = "us-east-1"
|
|
}
|
|
|
|
provider "aws" {
|
|
region = var.aws_region
|
|
}
|
|
|
|
module "dbbackup_storage" {
|
|
source = "./main.tf"
|
|
|
|
environment = "production"
|
|
bucket_name = "mycompany-database-backups"
|
|
retention_days = 30
|
|
glacier_days = 365
|
|
}
|
|
|
|
output "bucket_name" {
|
|
value = module.dbbackup_storage.bucket_name
|
|
}
|
|
|
|
output "setup_instructions" {
|
|
value = module.dbbackup_storage.dbbackup_cloud_config
|
|
}
|