diff options
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/parser/functions/debian_nextcodename.rb | 3 | ||||
-rw-r--r-- | lib/puppet/parser/functions/debian_release.rb | 7 | ||||
-rw-r--r-- | lib/puppet/parser/functions/debian_release_version.rb | 3 |
3 files changed, 9 insertions, 4 deletions
diff --git a/lib/puppet/parser/functions/debian_nextcodename.rb b/lib/puppet/parser/functions/debian_nextcodename.rb index f3190ef..ee59612 100644 --- a/lib/puppet/parser/functions/debian_nextcodename.rb +++ b/lib/puppet/parser/functions/debian_nextcodename.rb @@ -3,7 +3,8 @@ module Puppet::Parser::Functions case args[0] when "squeeze" then "wheezy" when "wheezy" then "jessie" - when "jessie" then "sid" + when "jessie" then "stretch" + when "stretch" then "sid" when "sid" then "experimental" else "sid" end diff --git a/lib/puppet/parser/functions/debian_release.rb b/lib/puppet/parser/functions/debian_release.rb index d7b6718..3f24ad0 100644 --- a/lib/puppet/parser/functions/debian_release.rb +++ b/lib/puppet/parser/functions/debian_release.rb @@ -1,9 +1,10 @@ module Puppet::Parser::Functions newfunction(:debian_release, :type => :rvalue) do |args| case args[0] - when 'squeeze' then 'oldstable' - when 'wheezy' then 'stable' - when 'jessie' then 'testing' + 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' diff --git a/lib/puppet/parser/functions/debian_release_version.rb b/lib/puppet/parser/functions/debian_release_version.rb index 0a57fd3..32cafcb 100644 --- a/lib/puppet/parser/functions/debian_release_version.rb +++ b/lib/puppet/parser/functions/debian_release_version.rb @@ -3,6 +3,9 @@ module Puppet::Parser::Functions 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 |