Skip to content

Commit 8f79f19

Browse files
kvbautistadvalfre
andauthored
Update MySQL8 default version to 8.0.29 (#210)
* 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]>
1 parent e439960 commit 8f79f19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cookbooks/ey-mysql/attributes/version.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
lock_major_version = `[ -f "/db/.lock_db_version" ] && grep -E -o '^[0-9]+\.[0-9]+' /db/.lock_db_version `
22
db_stack = lock_major_version == "" ? attribute["dna"]["engineyard"]["environment"]["db_stack_name"] : "mysql#{lock_major_version.gsub(/\./, '_').strip}"
33

4-
default["latest_version_57"] = "5.7.37"
5-
default["latest_version_80"] = "8.0.28"
4+
default["latest_version_57"] = `apt-cache madison percona-server-common-5.7 |awk '{print $3'} | tail -1`.split("-")[0]
5+
default["latest_version_80"] = `apt-cache madison percona-server-common |awk '{print $3'} | tail -1`.split("-")[0]
6+
67
major_version = ""
78
custom_version = fetch_env_var(node, "EY_MYSQL_VERSION", nil)
89

0 commit comments

Comments
 (0)