[Puppet Users] hasstatus return code

2012-02-01 Thread Hugo Deprez
Dear community, I use puppet to deploy iptables on every server. This is working fine. In the manifest I defined an iptables service which leads to my init script. The thing is each time I run puppet I got : notice: /Stage[main]/Iptables/Service[netfilter]/ensure: ensure changed 'stopped' to

Re: [Puppet Users] hasstatus return code

2012-02-01 Thread Hugo Deprez
Thank you I'll try that then. Yes I want puppet to use status command otherwise it will do something like ps -ef | grep $service_name As this is iptables I'll have no match. Regards On 1 February 2012 17:16, Gary Larizza g...@puppetlabs.com wrote: On Wed, Feb 1, 2012 at 10:41 AM, Hugo

[Puppet Users] Puppet dns requests

2012-03-09 Thread Hugo Deprez
Dear community, I just saw that when I execute puppetd -vt I can have up to 80 DNS request for the puppet server records. I specified in the puppet.conf : server=puppetserver.example.fr in the [main] section of the client. It seems to work for my Debian Squeeze client, but not for Debian Lenny.

Re: [Puppet Users] Puppet dns requests

2012-03-09 Thread Hugo Deprez
Thank you for the link. But I am not able to know if the server parameter is available for 0.25 clients. Any idea ? Regards, On 9 March 2012 17:32, Mohamed Lrhazi lrh...@gmail.com wrote: http://docs.puppetlabs.com/references/stable/configuration.html On Fri, Mar 9, 2012 at 11:22 AM, Hugo

Re: [Puppet Users] Re: ssh_authorized_key runs every time

2011-07-20 Thread Hugo Deprez
Hello, I have the same issue : ssh_authorized_key { user-rsa-key: ensure = 'present', key = '***== user@servername', type = 'rsa', user = 'user', require = File[/home/user/.ssh], } On my server it adds

Re: [Puppet Users] Re: ssh_authorized_key runs every time

2011-07-20 Thread Hugo Deprez
Hi Felix, I try the following : key = *BQfc62cpIMw==, And it works ! Thank you ! Hugo On 20 July 2011 14:37, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: Hi, On 07/20/2011 02:29 PM, Hugo Deprez wrote: key = '***== user@servername', well, the issue

[Puppet Users] Purge puppet's reports

2011-07-21 Thread Hugo Deprez
Dear community, I configure puppet dashboard on my server, in order to make it work I had to activate reports from clients. The thing is that my folder /var/lib/puppet/reports/ is now 1.6 Go large. Is there any mechanism available to auto delete old files ? Or should I configured my own script

[Puppet Users] Multiple nodes.pp files

2011-11-16 Thread Hugo Deprez
Dear community, I would like to know if it is possible to use different files for the nodes.pp Can we use in nodes.pp the following syntax : include nodes2.pp nodes2.pp could contain host definition eactly as nodes.pp but for a particular platform. This would allow more readable configuration

Re: [Puppet Users] Re: Multiple nodes.pp files

2011-11-19 Thread Hugo Deprez
Thank you Ramin, I used import nodes/*.pp this is exactly what I wanted. I am quite confuse about the difference between import and include (used for a module). is there a real difference ? Regards, Hugo On 17 November 2011 21:04, Ramin K ramin.khat...@gmail.com wrote: Tech documentation

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 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

[Puppet Users] Puppet broken - Could not retrieve catalog from remote server

2011-02-09 Thread Hugo Deprez
Hello, I was trying to change two modules on my puppet. And I was block on one error, until I figured that the error which show up was not related to a specific module. This error is causing issue to all my puppet clients : #puppetd -vt info: Retrieving plugin err: Could not retrieve catalog

Re: [Puppet Users] Puppet broken - Could not retrieve catalog from remote server

2011-02-09 Thread Hugo Deprez
February 2011 18:56, Patrick kc7...@gmail.com wrote: On Feb 9, 2011, at 7:13 AM, Hugo Deprez wrote: Hello, I was trying to change two modules on my puppet. And I was block on one error, until I figured that the error which show up was not related to a specific module. This error

[Puppet Users] Puppet Certificate verify failed

2011-03-10 Thread Hugo Deprez
Hello, I am trying to configure a new puppet server on Debian Squeeze, so the server version will be 2.6.2-4. I am trying to configure a client running Lenny, the puppet version is 0.25.4-2 I declare the new client with the command : #puppetd --server puppet.domain.tld --waitforcert 60 --test

[Puppet Users] How to deal with servers roles

2015-07-24 Thread Hugo Deprez
Hello, I am deploying a puppet server in order to manage a new infrastructure running Debian. As I am starting from scratch, I'm looking for advice on how to deal with server roles. I plan to create a class role::base with all default modules. So far no issues. But I don't know how to properly

[Puppet Users] Custom facts in facter

2015-10-21 Thread Hugo Deprez
Hello, I created a custom fact with the following procedure : mkdir -p /etc/puppet/modules/facts/lib/facter touch apache.rb Content of apache.rb file : Facter.add('apache') do setcode do apache_package = Facter::Core::Execution.exec('which apache2') # if 'which apache2' exits with

Re: [Puppet Users] Custom facts in facter

2015-10-22 Thread Hugo Deprez
Hello, this is working. Thank you ! Hugo On 21 October 2015 at 19:06, Peter Bukowinski <pmb...@gmail.com> wrote: > > > On Oct 21, 2015, at 12:56 PM, Hugo Deprez <hugo.dep...@gmail.com> wrote: > > > > Hello, > > > > I created a custom fact with th