summaryrefslogtreecommitdiff
path: root/lib/facter/mysql_exists.rb
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-05-12 22:13:37 +0200
committermh <mh@immerda.ch>2011-05-12 22:13:37 +0200
commit585cbc381ba1fe3fe0c1172e049f7d7ba2639edf (patch)
tree7ee0a721cbf601defea1e5428e27e44bbe76f604 /lib/facter/mysql_exists.rb
parentb8b6705865f947e4473a8e4981963dbeed667f8d (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_exists.rb')
-rw-r--r--lib/facter/mysql_exists.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/facter/mysql_exists.rb b/lib/facter/mysql_exists.rb
new file mode 100644
index 0000000..d08dabe
--- /dev/null
+++ b/lib/facter/mysql_exists.rb
@@ -0,0 +1,5 @@
+Facter.add("mysql_exists") do
+ setcode do
+ File.exist? '/usr/bin/mysql'
+ end
+end