Affects Version/s: None
Fix Version/s: None
AWS RDS Aurora MySQL
Template:MODULES Bug Template customfield_10700 250849
Method Found:Needs Assessment
QA Risk Assessment:Needs Assessment
I think it would be useful to include a sample fact for collecting the mysqld version on a remote system. There are some examples if you Google them, but this wouldn't work correctly for me in my environment.
Here is a sample that has been working reliably for me in order to obtain the mysqld version from a remove Aurora MySQL server.
default_version = "5.6.10"
raw_version = Facter::Core::Execution.exec('/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -N -s -e \'SHOW VARIABLES LIKE "version"\' 2>/dev/null')
raw_version = default_version if raw_version.nil? || raw_version.empty?
The default_version could be removed, but I set it as a backup in my environment.