summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/debian_release.rb
blob: 857edf301d134be96f37889e6731a08c9f9440f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Puppet::Parser::Functions
  newfunction(:debian_release, :type => :rvalue) do |args|
    case args[0]
      when 'lenny'        then 'oldstable'
      when 'squeeze'      then 'stable'
      when 'wheezy'       then 'testing'
      when 'sid'          then 'unstable'
      when 'experimental' then 'experimental'
      else 'testing'
    end
  end
end