Sorry for the top posting. So, configuration and package management are different problem: trying to solve a problem with a tool born for solving the other problem can have, in the short or long run, some issue. Ymmv, as everyone else.
Best 2012/11/6, Alan Evans <alanwev...@gmail.com>: > Budicom, > > One thing I might suggest is not to put the entire JBoss directory in > puppet and realize it as a file resource. As gross as it is for a > former employer I used the zip deployment and extracted the zip file. > > Disclaimer: No syntax checking, no validation YMMV, for example only. :) > > file { "$somepath/jboss-$version.zip": > ensure => 'present', > source => $somewhere, > } > > exec { "unzip-jboss-$version.zip": > command => "unzip $somepath/jboss-$version.zip -q -d $someotherdir", > requires => [ File["$somepath/jboss-$version.zip", Package['zip'] ], > } > > exec { "backup-jboss-$version-profiles": > command => "mv $someotherdir/jboss-$version/server/ > $someotherdir/jboss-$version/server.orig", > creates => "$someotherdir/jboss-$version/server.orig", > requires => "unzip-jboss-$version.zip", > } > > class jboss::instance ( > installdir = undef, > profile = 'default', > ) { > exec { "copy-jboss-profile-$name": > command => "cp $installdir/jboss-$version/server.orig/$profile > $installdir/jboss-$version/server/$name" > creates => "$installdir/jboss-$version/server/$name" > } > > # setup an init script > # configure other instance properties w/ augeas/files > } > > Campt to camp has a great "archive" installer you could cannibalize or > perhaps use in its entirety. It didn't quite work in my last > situation but perhaps it would work for you. > > https://github.com/camptocamp/puppet-archive > > Regards, > -Alan > > > On Tue, Nov 6, 2012 at 7:30 AM, Budicom <nduter...@geodisbm.com> wrote: >> Hi, >> >> I have a big problem with Puppet and JBoss. >> >> In jboss/server/ directory, there are several instances. And instances >> started, +100000 files are presents. >> >> Puppetrun takes several hours to complete his cycle. >> >> tmp/ directory is ignore in file resource (ignore => [ 'tmp', 'work', >> 'data', '.git', '*puppet-bak', '*class', '*tld', '*jsp' ],) but this >> directory is still processed. >> >> I don't understand. >> >> How to reduced execution time ? >> >> Thx. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/puppet-users/-/Z_sNqoE6xDcJ. >> To post to this group, send email to puppet-users@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- Inviato dal mio dispositivo mobile -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.