Hello,
thank you for the anwser.
I try to run facter on both servers here it what I get :
~ # facter operatingsystemrelease
5.0.8
~ $ facter operatingsystemrelease
6.0
So far no issues.
Maybe in my if statement I should use ?
Is there a way to print somewhere the value of the variables
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
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
On Feb 8, 2011, at 6:35 AM, Romgo wrote:
Hello,
I am running puppet server version 0.25.4-2, and since Debian squeeze
is the new stable release I would like to adapt some of my modules.
I have a syslog-ng module, I would like to specify another template
for my squeeze server.
I
Run factor | grep operatingsystemrelease on your client and see what
happens. If it doesn't give output, try factor by itself and see if you
have a typo in the name for the fact.
Erm, that's facter operatingsystemrelease or just facter :-)
Factor is a helpful tool, but not here and now.
I
On Feb 8, 2011, at 11:47 PM, Felix Frank wrote:
Run factor | grep operatingsystemrelease on your client and see what
happens. If it doesn't give output, try factor by itself and see if you
have a typo in the name for the fact.
Erm, that's facter operatingsystemrelease or just facter :-)