2010-10-06 11:16:44 +02:00
|
|
|
module Puppet::Parser::Functions
|
|
|
|
newfunction(:debian_release, :type => :rvalue) do |args|
|
2010-10-10 12:05:26 +02:00
|
|
|
case args[0]
|
2013-05-03 17:09:34 +02:00
|
|
|
when 'squeeze' then 'oldstable'
|
|
|
|
when 'wheezy' then 'stable'
|
|
|
|
when 'jessie' then 'testing'
|
2010-10-10 11:00:18 +02:00
|
|
|
when 'sid' then 'unstable'
|
|
|
|
when 'experimental' then 'experimental'
|
2010-10-10 12:05:26 +02:00
|
|
|
else 'testing'
|
2010-10-10 11:00:18 +02:00
|
|
|
end
|
2010-10-06 11:16:44 +02:00
|
|
|
end
|
|
|
|
end
|