Hello,
I found the solution thanks to your help :
if versioncmp($operatingsystemrelease, '5.0.8') > 0 {
$syslog_template = "syslog/syslog-ng.conf-squeeze.erb"
}
else
{
$syslog_template = "syslog/syslog-ng.conf.erb"
}
and I add in my class :
notify { "OS release detected as '$operatingsystemrelease'": }
notify { "template detected as '$syslog_template'": }
It works
Thank you !
Hugo
On 9 February 2011 10:48, Felix Frank <[email protected]>wrote:
> > Is there a way to print somewhere the value of the variables in order
> > to be sure of what is return ?
>
> notify { "OS release detected as '$operatingsystemrelease'": }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.