Refactor AIDE configuration and add exclusion paths
This commit is contained in:
@@ -145,7 +145,7 @@ resource "kubernetes_deployment" "chronograf" {
|
||||
volume {
|
||||
name = "persistent-storage"
|
||||
host_path {
|
||||
path = "/mnt/microk8s_persistent/chronograf.data"
|
||||
path = "${local.persistent_folder}/chronograf.data"
|
||||
}
|
||||
}
|
||||
volume {
|
||||
|
||||
@@ -44,6 +44,9 @@ locals {
|
||||
# notification
|
||||
scaleway_smtp_host = "smtp.tem.scw.cloud"
|
||||
scaleway_smtp_port = 587
|
||||
|
||||
# storage
|
||||
persistent_folder = "/mnt/microk8s_persistent"
|
||||
}
|
||||
|
||||
data "scaleway_account_project" "default" {
|
||||
|
||||
@@ -37,8 +37,8 @@ locals {
|
||||
}
|
||||
}
|
||||
|
||||
gitea_path = "/mnt/microk8s_persistent/gitea"
|
||||
gitea_mysql_path = "/mnt/microk8s_persistent/mysql.gitea"
|
||||
gitea_path = "${local.persistent_folder}/gitea"
|
||||
gitea_mysql_path = "${local.persistent_folder}/mysql.gitea"
|
||||
}
|
||||
|
||||
#
|
||||
@@ -108,8 +108,9 @@ module "gitea_backup" {
|
||||
secret_key = scaleway_iam_api_key.backup_app_api.secret_key
|
||||
bucket_name = scaleway_object_bucket.backup.name
|
||||
|
||||
retention_days = local.local_backup_retention_days
|
||||
cron_schedule = local.gitea_files_backup_cron_schedule
|
||||
retention_days = local.local_backup_retention_days
|
||||
cron_schedule = local.gitea_files_backup_cron_schedule
|
||||
host_storage_path = local.persistent_folder
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
locals {
|
||||
m3uproxy_path = "/mnt/microk8s_persistent/m3uproxy"
|
||||
m3uproxy_path = "${local.persistent_folder}/m3uproxy"
|
||||
m3uproxy_cache_path = "${local.m3uproxy_path}/cache"
|
||||
squid_app_path = "${local.m3uproxy_path}/squid"
|
||||
geoip_path = "${local.m3uproxy_path}/geoip"
|
||||
|
||||
@@ -24,7 +24,6 @@ variable "app_password" {
|
||||
|
||||
variable "host_storage_path" {
|
||||
description = "host storage path"
|
||||
default = "/srv"
|
||||
type = string
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@ variable "cron_schedule" {
|
||||
|
||||
variable "host_storage_path" {
|
||||
description = "Host path"
|
||||
default = "/var/lib"
|
||||
type = string
|
||||
}
|
||||
|
||||
|
||||
@@ -74,8 +74,8 @@ locals {
|
||||
}
|
||||
}
|
||||
|
||||
nextcloud_path = "/mnt/microk8s_persistent/nextcloud"
|
||||
nextcloud_mysql_path = "/mnt/microk8s_persistent/mysql.nextcloud"
|
||||
nextcloud_path = "${local.persistent_folder}/nextcloud"
|
||||
nextcloud_mysql_path = "${local.persistent_folder}/mysql.nextcloud"
|
||||
}
|
||||
|
||||
#
|
||||
@@ -170,8 +170,9 @@ module "nextcloud_backup" {
|
||||
secret_key = scaleway_iam_api_key.backup_app_api.secret_key
|
||||
bucket_name = scaleway_object_bucket.backup.name
|
||||
|
||||
retention_days = local.local_backup_retention_days
|
||||
cron_schedule = local.nextcloud_files_backup_cron_schedule
|
||||
retention_days = local.local_backup_retention_days
|
||||
cron_schedule = local.nextcloud_files_backup_cron_schedule
|
||||
host_storage_path = local.persistent_folder
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
locals {
|
||||
wordpress_path = "/mnt/microk8s_persistent/wordpress"
|
||||
wordpress_mysql_path = "/mnt/microk8s_persistent/mysql.wordpress"
|
||||
wordpress_path = "${local.persistent_folder}/wordpress"
|
||||
wordpress_mysql_path = "${local.persistent_folder}/mysql.wordpress"
|
||||
}
|
||||
|
||||
resource "kubernetes_namespace" "wordpress" {
|
||||
@@ -54,8 +54,9 @@ module "wordpress_backup" {
|
||||
secret_key = scaleway_iam_api_key.backup_app_api.secret_key
|
||||
bucket_name = scaleway_object_bucket.backup.name
|
||||
|
||||
retention_days = local.local_backup_retention_days
|
||||
cron_schedule = local.wordpress_files_backup_cron_schedule
|
||||
retention_days = local.local_backup_retention_days
|
||||
cron_schedule = local.wordpress_files_backup_cron_schedule
|
||||
host_storage_path = local.persistent_folder
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user