Use variable for mariadb version

This commit is contained in:
Nemo 2018-05-06 01:45:12 +05:30
parent 5f47a08bb5
commit ec5ee3debc
4 changed files with 8 additions and 3 deletions

View File

@ -33,7 +33,7 @@ checkNewVersion = false
endpoint = "unix:///var/run/docker.sock"
domain = "bb8.fun"
watch = true
exposedbydefault = true
exposedbydefault = false
[file]
[backends]

View File

@ -1,7 +1,7 @@
# Database versions shouldn't be upgraded
data "docker_registry_image" "mariadb" {
name = "mariadb:10.3"
name = "mariadb:${var.mariadb-version}"
}
data "docker_registry_image" "percona-mongodb-server" {

View File

@ -56,6 +56,6 @@ resource "docker_container" "mariadb" {
]
command = [
"--version=10.3-MariaDB",
"--version=${var.mariadb-version}-MariaDB",
]
}

View File

@ -53,3 +53,8 @@ variable "domain" {
variable "ips" {
type = "map"
}
variable "mariadb-version" {
description = "mariadb version to use for fetching the docker image"
default = "10.3"
}