blob: 64feb669597cd57d3595853b9f5accd98152c93e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module Puppet::Parser::Functions
newfunction(:debian_release, :type => :rvalue) do |args|
case args[0]
when 'etch' then 'oldstable'
when 'lenny' then 'stable'
when 'squeeze' then 'testing'
when 'wheezy' then 'testing'
when 'sid' then 'unstable'
when 'experimental' then 'experimental'
else 'testing'
end
end
end
|