diff options
Diffstat (limited to 'lib/puppet/parser/functions/debian_release.rb')
-rw-r--r-- | lib/puppet/parser/functions/debian_release.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/debian_release.rb b/lib/puppet/parser/functions/debian_release.rb new file mode 100644 index 0000000..64feb66 --- /dev/null +++ b/lib/puppet/parser/functions/debian_release.rb @@ -0,0 +1,13 @@ +module Puppet::Parser::Functions + newfunction(:debian_release, :type => :rvalue) do |args| + case args[0] + when 'etch' then 'oldstable' + when 'lenny' then 'stable' + when 'squeeze' then 'testing' + when 'wheezy' then 'testing' + when 'sid' then 'unstable' + when 'experimental' then 'experimental' + else 'testing' + end + end +end |