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