From f362f059956d745037425eb5f8c27ce48c14632e Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sun, 6 Feb 2011 08:56:54 +0100 Subject: Update debian_release function since Squeeze has been released. --- lib/puppet/parser/functions/debian_release.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/puppet/parser/functions/debian_release.rb b/lib/puppet/parser/functions/debian_release.rb index 64feb66..857edf3 100644 --- a/lib/puppet/parser/functions/debian_release.rb +++ b/lib/puppet/parser/functions/debian_release.rb @@ -1,9 +1,8 @@ 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 'lenny' then 'oldstable' + when 'squeeze' then 'stable' when 'wheezy' then 'testing' when 'sid' then 'unstable' when 'experimental' then 'experimental' -- cgit v1.2.3 From e32f4275a6ec3c4cb531f1ec1816479d6d2dd36c Mon Sep 17 00:00:00 2001 From: intrigeri Date: Mon, 7 Feb 2011 11:27:54 +0100 Subject: debian_release_version: add Squeeze's version number. --- lib/puppet/parser/functions/debian_release_version.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/puppet/parser/functions/debian_release_version.rb b/lib/puppet/parser/functions/debian_release_version.rb index 4b135d0..ff58f72 100644 --- a/lib/puppet/parser/functions/debian_release_version.rb +++ b/lib/puppet/parser/functions/debian_release_version.rb @@ -3,6 +3,7 @@ module Puppet::Parser::Functions case args[0] when 'etch' then '4.0' when 'lenny' then '5.0' + when 'squeeze' then '6.0' else '' end end -- cgit v1.2.3 From f11e821f0ad7e52be19163b62f18930c90fffed5 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Mon, 7 Feb 2011 11:28:29 +0100 Subject: debian_nextcodename: take into account Squeeze was released. --- lib/puppet/parser/functions/debian_nextcodename.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/parser/functions/debian_nextcodename.rb b/lib/puppet/parser/functions/debian_nextcodename.rb index 6bc4b6b..f57dd2a 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 "etch" then "lenny" when "lenny" then "squeeze" - when "squeeze" then "sid" + when "squeeze" then "wheezy" + when "wheezy" then "sid" when "sid" then "experimental" else "sid" end -- cgit v1.2.3