--- /dev/null
+module Puppet::Parser::Functions
+ newfunction(:debian_nextcodename, :type => :rvalue) do |args|
+ case #{args[0]} {
+ etch: { 'lenny' }
+ lenny: { 'squeeze' }
+ squeeze: { 'sid' }
+ sid: { 'experimental' }
+ }
+ end
+end
--- /dev/null
+module Puppet::Parser::Functions
+ newfunction(:debian_nextrelease, :type => :rvalue) do |args|
+ case #{args[0]} {
+ oldstable: { 'stable' }
+ stable: { 'testing' }
+ testing: { 'unstable' }
+ unstable: { 'experimental' }
+ }
+ end
+end
--- /dev/null
+module Puppet::Parser::Functions
+ newfunction(:debian_release, :type => :rvalue) do |args|
+ case #{args[0]} {
+ etch: { 'oldstable' }
+ lenny: { 'stable' }
+ squeeze: { 'testing' }
+ sid: { 'unstable' }
+ experimental: { 'experimental' }
+ }
+ end
+end