module-apt/lib/puppet/parser/functions/debian_release_version.rb

10 lines
260 B
Ruby

module Puppet::Parser::Functions
newfunction(:debian_release_version, :type => :rvalue) do |args|
case args[0]
when 'etch' then '4.0'
when 'lenny' then '5.0'
when 'squeeze' then '6.0'
else ''
end
end
end