Re: [Puppet Users] Puppet facter operatingsystemrelease

2011-02-09 Thread Hugo Deprez
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

Re: [Puppet Users] Puppet facter operatingsystemrelease

2011-02-09 Thread Felix Frank
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

Re: [Puppet Users] Puppet facter operatingsystemrelease

2011-02-09 Thread Hugo Deprez
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

Re: [Puppet Users] Puppet facter operatingsystemrelease

2011-02-08 Thread Patrick
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

Re: [Puppet Users] Puppet facter operatingsystemrelease

2011-02-08 Thread Felix Frank
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

Re: [Puppet Users] Puppet facter operatingsystemrelease

2011-02-08 Thread Patrick
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 :-)