diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-05-11 10:49:27 -0400 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-05-11 12:01:35 -0400 |
commit | d007a403330c553d925b1b4888d93962a5f83f99 (patch) | |
tree | 005b4ef8a8fc558a6cb143b3252e8694eada215c /lib/puppet/parser/functions/debian_nextcodename.rb | |
parent | 87bfb868d7625100086a26a81743f5adbabbb988 (diff) | |
download | puppet-apt-d007a403330c553d925b1b4888d93962a5f83f99.tar.gz puppet-apt-d007a403330c553d925b1b4888d93962a5f83f99.tar.bz2 |
Replace debian_*() parser functions with facts
* Removes dependency on lsb-release and/or Facter >1.7
(values are based on $::lsbdistcodename, when available)
* Simplifies maintenance: only lib/facter/util/* require updates as new
releases are made
Caveats:
* apt::codename is removed; to override debian_* facts, set the
FACTER_debian_codename environment variable for puppet
* If tracking unstable, make sure lsb-release is installed, as other
methods can't tell between testing and unstable
Diffstat (limited to 'lib/puppet/parser/functions/debian_nextcodename.rb')
-rw-r--r-- | lib/puppet/parser/functions/debian_nextcodename.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/puppet/parser/functions/debian_nextcodename.rb b/lib/puppet/parser/functions/debian_nextcodename.rb deleted file mode 100644 index ee59612..0000000 --- a/lib/puppet/parser/functions/debian_nextcodename.rb +++ /dev/null @@ -1,12 +0,0 @@ -module Puppet::Parser::Functions - newfunction(:debian_nextcodename, :type => :rvalue) do |args| - case args[0] - when "squeeze" then "wheezy" - when "wheezy" then "jessie" - when "jessie" then "stretch" - when "stretch" then "sid" - when "sid" then "experimental" - else "sid" - end - end -end |