summaryrefslogtreecommitdiff
path: root/lib/facter/mysql_exists.rb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-26 13:04:42 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-26 13:04:42 -0200
commitce9a3a152fc180e2de297367ea1a87477eae9338 (patch)
tree967ac44bab63a89f07c3ce5b09f721e6befaa718 /lib/facter/mysql_exists.rb
parente51113be291e2c30088d9b25e9e279d9f3a675e1 (diff)
downloadpuppet-mysql-ce9a3a152fc180e2de297367ea1a87477eae9338.tar.gz
puppet-mysql-ce9a3a152fc180e2de297367ea1a87477eae9338.tar.bz2
More lib updates
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