diff options
author | mh <mh@immerda.ch> | 2011-05-12 22:13:37 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-05-12 22:13:37 +0200 |
commit | 585cbc381ba1fe3fe0c1172e049f7d7ba2639edf (patch) | |
tree | 7ee0a721cbf601defea1e5428e27e44bbe76f604 /lib/facter/mysql_version.rb | |
parent | b8b6705865f947e4473a8e4981963dbeed667f8d (diff) |
fix grant on newer mysql version
MySQL introduced some new privileges in Versions > 5.1.6, add them
to our set, so puppet still knows what :all is.
Diffstat (limited to 'lib/facter/mysql_version.rb')
-rw-r--r-- | lib/facter/mysql_version.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/facter/mysql_version.rb b/lib/facter/mysql_version.rb new file mode 100644 index 0000000..1130d76 --- /dev/null +++ b/lib/facter/mysql_version.rb @@ -0,0 +1,6 @@ +Facter.add("mysql_version") do + confine :mysql_exists => true + setcode do + Facter::Util::Resolution.exec('mysql --version').chomp.split(' ')[4] + end +end |