aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/debian_release.rb
blob: d7b6718e3d5146bae83ff480b85014c75fc6080e (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 'squeeze'      then 'oldstable'
      when 'wheezy'       then 'stable'
      when 'jessie'       then 'testing'
      when 'sid'          then 'unstable'
      when 'experimental' then 'experimental'
      else 'testing'
    end
  end
end