[Puppet Users] Best practice to share variable values among nodes

2013-01-30 Thread Sylvain Mougenot
Hello, I'm new to puppet using a puppet-master. And I couldn't figure out what's the best practice I need. *My context : * - puppet-master with a puppet dashboard is setup and running - few modules are ready and fully fonctionnal (tested using vagrant and "puppet apply") - there are some nodes i

[Puppet Users] Require failed but still executing

2012-08-01 Thread Sylvain Kalache
Hi, I want to find a way to make sure that the Nagios configuration is valid before performing a reload, and I came up with this: exec { 'check_nagios_config': subscribe => File['/etc/nagios/objects'], refreshonly => true, command => '/usr/bin/nagios -v /etc/nagios/nagios.cfg',

[Puppet Users] syntax highlighting on emacs

2011-06-28 Thread Sylvain
Hi guys, I'm trying to install the syntax highlighting on emacs for Puppet. I'm using the configuration files provide on http://projects.reductivelabs.com/repositories/browse/puppet/ext/emacs When I open a .pp file I got this error: File mode specification error: (void-function puppet-mode) Than

[Puppet Users] Certificate request does not match existing certificate

2011-04-18 Thread Sylvain
Hello there, I have a problem while I'm trying to puppetize a client, I get this error: err: Could not request certificate: Certificate retrieval failed: Certificate request does not match existing certificate; run 'puppetca --clean puppetclienttest'. Here is how I proceed: -Ask for a certificate

[Puppet Users] Certificate request does not match existing certificate

2011-04-18 Thread Sylvain
Hello there, I have a problem while I'm trying to puppetize a client, I get this error: err: Could not request certificate: Certificate retrieval failed: Certificate request does not match existing certificate; run 'puppetca --clean puppetclienttest.sl.ss'. I checked -Shutdown puppet on client/se

Re: Private data in manifests (was: Re: [Puppet Users] Using Git to distribute Puppet configs)

2010-01-29 Thread Sylvain Avril
I use the following plugin : module Puppet::Parser::Functions newfunction(:getPassword, :type => :rvalue) do |args| clientHostname = args[0] type = args[1] len = args[2] filename = "/var/lib/puppet/passwords/" + clientHostname + "-" + type + ".pass" def newpass( le

[Puppet Users] Plugin not catching exceptions

2010-01-29 Thread Sylvain Avril
Hello, I'm writing a plugin which make an xml-rpc call that throw an exception if the foreign call fail (due to a bad fault-structure). So I catch this exception in my code (I expect it to fail) : [...] server = XMLRPC::Client.new( host, "/xmlrpc/db", 8069) begin result = serve

[Puppet Users] Re: large file download, timeout?

2009-07-18 Thread Sylvain Avril
I myself don't use puppet to pull big files. Maybe you use puppet with the default Webrick HTTP frontend. You may test another frontend like mongrel or passenger : http://reductivelabs.com/trac/puppet/wiki/UsingMongrel http://reductivelabs.com/trac/puppet/wiki/UsingPassenger For my use, I use an

[Puppet Users] Re: iptables anyone?

2009-04-24 Thread Sylvain Avril
It depends on what you want but you could also use shorewall. http://git.black.co.at/?p=module-shorewall;a=tree It is not sure it is the site of the original puppet script author I think but I don't have the original at hand. I'm pretty satisfied with it. In fact, these scripts are replicated on s