Skip to content

Instantly share code, notes, and snippets.

@DamianZaremba
Created July 26, 2012 13:06
Show Gist options
  • Save DamianZaremba/3181941 to your computer and use it in GitHub Desktop.
Save DamianZaremba/3181941 to your computer and use it in GitHub Desktop.
Facter MySQL version module
Facter.add(:mysql_version) do
setcode do
Facter::Util::Resolution.exec('mysql --version').chomp.split(' ')[4].gsub(',', '')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment