Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add variable for specifying database engine version (Pg v11 is not available anymore) #23

Open
annis-souames opened this issue Feb 18, 2024 · 0 comments

Comments

@annis-souames
Copy link

First, I would like to thank you for this project. I just want to raise an issue regarding the version of the DB cluster, currently in database.tf :

resource "digitalocean_database_cluster" "k3s" {
  name                 = "k3s-ext-datastore"
  engine               = var.database_engine == "postgres" ? "pg" : "mysql"
  version              = var.database_engine == "postgres" ? "11" : "8"
  size                 = var.database_size
  region               = var.region
  private_network_uuid = digitalocean_vpc.k3s_vpc.id
  node_count           = var.database_node_count
}

In this case if the database is PostgreSQL, the version used is 11, while as of now, the latest version in Digital Ocean is 16, with the oldest one being 12 so this is an issue and force users to go with MySQL v8. Would be nice to add a variable for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant