2010-10-10 11:00:18 +02:00
|
|
|
module Puppet::Parser::Functions
|
|
|
|
newfunction(:debian_nextcodename, :type => :rvalue) do |args|
|
2010-10-10 12:05:26 +02:00
|
|
|
case args[0]
|
2011-02-07 11:28:29 +01:00
|
|
|
when "squeeze" then "wheezy"
|
2013-05-03 17:09:34 +02:00
|
|
|
when "wheezy" then "jessie"
|
2015-05-06 16:41:47 +02:00
|
|
|
when "jessie" then "stretch"
|
|
|
|
when "stretch" then "sid"
|
2010-10-10 12:05:26 +02:00
|
|
|
when "sid" then "experimental"
|
|
|
|
else "sid"
|
2010-10-10 11:00:18 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|