From 30c9e2678d538a3db58f0ff3066cccced0b9cc33 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 16 Feb 2011 22:45:38 -0200 Subject: Using $puppetversion instead of $lsbdistcodename to determine puppet agent section in config file --- manifests/puppetd.pp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- cgit v1.2.3