diff --git a/.gitignore b/.gitignore index 19ffae8..e21536d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ target/ *.hcl tool services -docker \ No newline at end of file +docker +forge/ \ No newline at end of file diff --git a/hosts/exegol/databases/main.tf b/hosts/exegol/databases/main.tf index 2c90c91..a238e2d 100644 --- a/hosts/exegol/databases/main.tf +++ b/hosts/exegol/databases/main.tf @@ -6,8 +6,3 @@ terraform { } } } - -provider "docker" { - # can be the port in remote connection - host = "unix:///var/run/docker.sock" -} diff --git a/hosts/exegol/main.tf b/hosts/exegol/main.tf index 05d25c1..2c90c91 100644 --- a/hosts/exegol/main.tf +++ b/hosts/exegol/main.tf @@ -11,14 +11,3 @@ provider "docker" { # can be the port in remote connection host = "unix:///var/run/docker.sock" } - -module "database" { - source = "./databases" - - password_mariadb = var.password_mariadb - password_surrealdb = var.password_surrealdb - storage_mariadb = var.storage_mariadb - storage_surrealdb = var.storage_surrealdb - user_surrealdb = var.user_surrealdb - network = docker_network.main.name -} diff --git a/hosts/exegol/modules.tf b/hosts/exegol/modules.tf new file mode 100644 index 0000000..846d3cc --- /dev/null +++ b/hosts/exegol/modules.tf @@ -0,0 +1,14 @@ +module "database" { + source = "./databases" + + providers = { + docker = docker + } + + password_mariadb = var.password_mariadb + password_surrealdb = var.password_surrealdb + storage_mariadb = var.storage_mariadb + storage_surrealdb = var.storage_surrealdb + user_surrealdb = var.user_surrealdb + network = docker_network.main.name +} diff --git a/hosts/scariff/modules.tf b/hosts/scariff/modules.tf index 899188b..c128972 100644 --- a/hosts/scariff/modules.tf +++ b/hosts/scariff/modules.tf @@ -1,6 +1,10 @@ module "monitoring" { source = "./monitoring" + providers = { + docker = docker + } + network = docker_network.main.name hostname = var.hostname path_config = var.path_config @@ -15,6 +19,10 @@ module "monitoring" { # module "media" { # source = "./media" +# providers = { +# docker = docker +# } + # network = docker_network.main.name # hostname = var.hostname # path_config = var.path_config diff --git a/hosts/scariff/monitoring/main.tf b/hosts/scariff/monitoring/main.tf index 2ccdacc..0d6be7a 100644 --- a/hosts/scariff/monitoring/main.tf +++ b/hosts/scariff/monitoring/main.tf @@ -7,8 +7,8 @@ terraform { } } -provider "docker" { - # can be the port in remote connection - host = "unix:///var/run/docker.sock" - # host = "tcp://${var.host}:2375" -} +# provider "docker" { +# # can be the port in remote connection +# host = "unix:///var/run/docker.sock" +# # host = "tcp://${var.host}:2375" +# }