From: Silvio Rhatto Date: Thu, 17 Feb 2011 00:45:38 +0000 (-0200) Subject: Using $puppetversion instead of $lsbdistcodename to determine puppet agent section... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=30c9e2678d538a3db58f0ff3066cccced0b9cc33;p=puppet-puppet.git Using $puppetversion instead of $lsbdistcodename to determine puppet agent section in config file --- diff --git a/manifests/puppetd.pp b/manifests/puppetd.pp index eb4d420..8ee47a1 100644 --- a/manifests/puppetd.pp +++ b/manifests/puppetd.pp @@ -31,10 +31,9 @@ class puppetd inherits puppet { } # name of puppet agent section in config file - $puppet_agent_section = $lsbdistcodename ? { - 'lenny' => 'puppetd', - 'lucid' => 'puppetd', - default => 'agent', + $puppet_agent_section = $puppetversion ? { + '0.25.4' => 'puppetd', + default => 'agent', } # default config file for puppet nodes