[Puppet Users] Re: Declare the same resource with different parameters

2012-08-16 Thread Rost
Yes I want to fill /myappbase/applis/conf with the content of twice sources, but in different class. Le jeudi 16 août 2012 17:41:12 UTC+2, Rost a écrit : > > Hi all, > > I'm developing my own module, and i want to declare same resources in > different class like this :

[Puppet Users] Declare the same resource with different parameters

2012-08-16 Thread Rost
Hi all, I'm developing my own module, and i want to declare same resources in different class like this : This resource is used to configure my Jboss server by copying conf files in /myappbase/applis/conf class srhjboss::config::applis { file { "/myappbase/applis/conf": ensure => directory,

Re: [Puppet Users] Puppet for deploying Jboss application

2012-08-14 Thread Rost
thks Le mardi 14 août 2012 22:21:04 UTC+2, Dominic Cleal a écrit : > > On 14/08/12 18:18, Rost wrote: > > Hi All, > > > > I would like to use puppet for deploying Jboss application. > > > > The property file of my Jboss app need to be evaluated before m

[Puppet Users] Puppet for deploying Jboss application

2012-08-14 Thread Rost
Hi All, I would like to use puppet for deploying Jboss application. The property file of my Jboss app need to be evaluated before moving in the conf dir as it's a template. How could I make this kind of operation with native resources of puppet. *Example :* I have this file *myapp.properties

[Puppet Users] Re: Duplicate definition of resources in the same class

2012-08-10 Thread Rost
Hi Axel Thanks a lot, you solution is right. Le vendredi 10 août 2012 12:40:21 UTC+2, Rost a écrit : > > Hi all, > > I am struggling on how to do this : > > $path = '/tmp/lib' > > file { $path: >ensure => directory, >recurse => true, >

[Puppet Users] Duplicate definition of resources in the same class

2012-08-10 Thread Rost
Hi all, I am struggling on how to do this : $path = '/tmp/lib' file { $path: ensure => directory, recurse => true, purge => true, } file { $path: ensure => directory, resurce => true, source => 'puppet:///modules/jboss/lib } When puppet compiles the manifest, I get the follow

[Puppet Users] Re: Exec resource don't write file after the command

2012-08-08 Thread Rost
thanks Brian, You are right !!! It's working Le mercredi 8 août 2012 15:42:02 UTC+2, Rost a écrit : > > Hi all, > > I'm trying to have the exec resource write a file after the command but it > don't. > > here is the resource declaration > > class gep

[Puppet Users] Exec resource don't write file after the command

2012-08-08 Thread Rost
Hi all, I'm trying to have the exec resource write a file after the command but it don't. here is the resource declaration class gepet { notify { 'begin':} file { '/root/essai/html': ensure => present, content => "Wrote By Yves Nton", notify => Exec['test'], } exec { 'test': path => "/usr/bin

Re: [Puppet Users] service resource type

2012-08-06 Thread Rost
nit_script.sh', > } > > Since you're using a custom start script, you may need to also specify > custom status and restart scripts so that puppet can better control the > process if the httpd config file ever changes and you want the service to > restart aut

Re: [Puppet Users] service resource type

2012-08-06 Thread Rost
che2/conf/httpd -k start Thanks a lot. Le lundi 6 août 2012 21:39:23 UTC+2, pmbuko a écrit : > > On Aug 6, 2012, at 2:45 PM, Rost wrote: > > Hi everbody !!! > > I would like to know how to use the parameter start of the service > resource type. Because i want to use my o

[Puppet Users] service resource type

2012-08-06 Thread Rost
Hi everbody !!! I would like to know how to use the parameter start of the service resource type. Because i want to use my own script to start my service. I have tried 2 cases and did'nt work. Here are the cases : service { 'myservice': start => '/root/myinit_script.sh' } service { 'myservi

[Puppet Users] Re: Puppet Dashboard and Ruby 1.8.7 for EL5 systems HOWTO (draft)

2012-07-26 Thread Rost
Thanks a lot. All this works fine for me. Le jeudi 5 janvier 2012 02:04:34 UTC+1, Jo a écrit : > > NOTE: this is a draft document, just because there are some things here > that I'd really like to improve. Please let me know if you have a better > way to do these things. There's also a few i