Skip to content

Commit

Permalink
Update MySQL8 default version to 8.0.29 (#210)
Browse files Browse the repository at this point in the history
* Update MySQL8 default version to 8.0.29

* Get versions automatically, avoiding having to update the recipe regularly

---------

Co-authored-by: Daniel Valfre <[email protected]>
  • Loading branch information
kvbautista and dvalfre authored Dec 27, 2023
1 parent e439960 commit 8f79f19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cookbooks/ey-mysql/attributes/version.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
lock_major_version = `[ -f "/db/.lock_db_version" ] && grep -E -o '^[0-9]+\.[0-9]+' /db/.lock_db_version `
db_stack = lock_major_version == "" ? attribute["dna"]["engineyard"]["environment"]["db_stack_name"] : "mysql#{lock_major_version.gsub(/\./, '_').strip}"

default["latest_version_57"] = "5.7.37"
default["latest_version_80"] = "8.0.28"
default["latest_version_57"] = `apt-cache madison percona-server-common-5.7 |awk '{print $3'} | tail -1`.split("-")[0]
default["latest_version_80"] = `apt-cache madison percona-server-common |awk '{print $3'} | tail -1`.split("-")[0]

major_version = ""
custom_version = fetch_env_var(node, "EY_MYSQL_VERSION", nil)

Expand Down

0 comments on commit 8f79f19

Please sign in to comment.