Created
July 26, 2012 13:06
-
-
Save DamianZaremba/3181941 to your computer and use it in GitHub Desktop.
Facter MySQL version module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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