module-apt/lib/puppet/parser/functions/debian_release.rb
2015-05-06 10:41:47 -04:00

13 lines
406 B
Ruby

module Puppet::Parser::Functions
newfunction(:debian_release, :type => :rvalue) do |args|
case args[0]
when 'squeeze' then 'oldoldstable'
when 'wheezy' then 'oldstable'
when 'jessie' then 'stable'
when 'stretch' then 'testing'
when 'sid' then 'unstable'
when 'experimental' then 'experimental'
else 'testing'
end
end
end