[Puppet Users] Re: loops in .pp files?

2009-05-15 Thread Benoit Decherf
Create a definition that create the environments : define prepare_env() { $env = $name file { "e${env}-website1": ... } ... } And in a class, call it with the array "envs": class main_class { prepare_env{$envs: } } neerolyte wrote: > I'm struggling to figure

[Puppet Users] application installation and custom types

2009-04-22 Thread Benoit DECHERF
Hi, We are using puppet to deploy our application. On each server, we can have several instances of the application. For example: An application is a tomcat webapp. We can deploy the webapp on several tomcat instances, and we also can deploy the webapp several times on each tomcat (to have one ins

[Puppet Users] Re: reports on standalone puppet

2009-04-20 Thread Benoit DECHERF
Apr 16, 2009, at 8:29 AM, Benoit Decherf wrote: > > > > > Hi, > > > > Is it possible to enable report when executing puppet standalone ? > > It seems that "report=true" means that puppet have to send the > > report to > > the server, so it&#

[Puppet Users] reports on standalone puppet

2009-04-16 Thread Benoit Decherf
Hi, Is it possible to enable report when executing puppet standalone ? It seems that "report=true" means that puppet have to send the report to the server, so it's normal that it doesn't work on standalone. Is there another way to execute reports ? Benoit --~--~-~--~~~-

[Puppet Users] Re: question about reports

2009-04-16 Thread Benoit Decherf
I have the same error: It occurs when rrdgraph=true at /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb line 528. Benoit Luke Kanies wrote: > On Sep 30, 2008, at 3:31 PM, Nicolas Arias wrote: > > >> when a node tries to send a report it drops the following error: >> >> err: Reporting failed:

[Puppet Users] Re: autoloading of modules

2009-02-12 Thread Benoit Decherf
Which characters are allowed in the class name and module name ? Is the "-" allowed ? I create the bug 1960 for this. Benoit On 02/11/2009 06:02 PM, Luke Kanies wrote: > On Feb 11, 2009, at 4:42 AM, Benoit Decherf wrote: > > >> Hi, >> >> I create a mo

[Puppet Users] Re: Definitions, Classes, and Nodes; Oh My!

2009-02-11 Thread Benoit Decherf
Thanks for that very good explication ! I still have a doubt : How to manage property "per instance". In a little more complicated case, an instance of a webapp have to connect to a given database. node node1 { $countries=["fr", "uk"] include webserver } and my webserver class: class

[Puppet Users] autoloading of modules

2009-02-11 Thread Benoit Decherf
Hi, I create a module call "MyModule". Then if I try to include a class in that module : include MyModule::myClass This doesn't works if I don't import the module first. BUT If my module is called my_module (in lower case), that works. I don't see anywhere in the puppet documentation where the

[Puppet Users] Re: what about kinial ?

2009-02-06 Thread Benoit Decherf
It's not a good solution. In our company, we separate the system admins and the dev. When the developers create an application, they provide the puppet class to deploy the application. In some case, an application can be deployed several times in the same host. (several instances of the applicati

[Puppet Users] Re: what about kinial ?

2009-02-05 Thread Benoit Decherf
Ok. About the external nodes, why doesn't it possible to use definition ? I use definition to create an instance of tomcat for exemple. So I'd like to be able to create a node with 2 or more instances. Why there is this limitation ? >> What are the 10% missing ? >> Does ldap node implements mu

[Puppet Users] Re: what about kinial ?

2009-02-05 Thread Benoit Decherf
On 02/05/2009 06:03 AM, Luke Kanies wrote: > On Feb 4, 2009, at 1:20 PM, benoit wrote: > > >> Hi, >> >> I was looking for a solution to change the value of a variable using >> include (http://reductivelabs.com/trac/puppet/wiki/ >> CommonMisconceptions), and found an interesting solution on the

[Puppet Users] puppet failure notification

2008-11-27 Thread Benoit Decherf
Hi, When something goes wrong during the installation of a node, it seems that there is no notification (in the server) that the installation fails. I am right ? How do you know that the node you just installed is correctly installed ? (I don't find any information on this in puppetshow) Is th

[Puppet Users] puppetd --listen fails

2008-11-25 Thread Benoit Decherf
Hi, I'm new to puppet and I just try it to see if we could use it in the company. So I write a manifest to install a software. I can test the manifest using "puppetd -t" in the client side. But if i try to start puppetd to listen for server notification I got an error: err: Could not run Pupp