libraries/helpers.rb
# helpers for opentsdb
module OpentsdbCookbook
module Helpers
include Chef::DSL::IncludeRecipe
def distro_ext
case node.platform_family
when 'debian'
'_all.deb'
when 'rhel'
'.noarch.rpm'
end
end
def prereq_pack
# RHEL world neds gnuplot
if node.platform_family == 'rhel'
package 'gnuplot' do
action :install
end
end
end
end
end