aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/debian_release_version.rb
blob: 32cafcb4ce5a077537b8c77674eb7d6f5f930b46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Puppet::Parser::Functions
  newfunction(:debian_release_version, :type => :rvalue) do |args|
    case args[0]
      when 'squeeze'      then '6.0'
      when 'wheezy'       then '7.0'
      when 'jessie'       then '8.0'
      when 'stretch'      then '9.0'
      when 'buster'       then '10.0'
      else ''
    end
  end
end