Hi Another options is to modify another module that acomplishes your final goal. For example this one: https://github.com/7terminals/puppet-java
This one copy the java source code to the agent, then extract it. It is already idempotent so new puppet run will not do anything. With a few modifications it should fit your expectations Best regards -------------------------------------------------------------------------------------- Juan Sierra Pons [email protected] Linux User Registered: #257202 Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo GPG key = 0xA110F4FE Key Fingerprint = DF53 7415 0936 244E 9B00 6E66 E934 3406 A110 F4FE -------------------------------------------------------------------------------------- 2014-06-27 6:13 GMT+02:00 Seby <[email protected]>: > Hi Puppet experts, > > I'm trying to install tomcat7*tar.gz on few puppet-agent machines. I've > defined a class that will create a user/group and copy the source file from > puppet-master then extracts the tomcat*.tar.gz file to its home directory > and deletes the source file. This seems to be working. But each time when > the agent runs(on all agents), it will copy the source file from the master > and then deletes it wasting the bandwidth. > > Is there a way to call the tomcat7 class only if the tomcat directory is not > present? > > Regards, > SFK. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/fc0ef54b-5cdf-4e29-aa3c-8532948fcb49%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CABS%3Dy9u_nOa8MSYQds7zuDaX%3DFiL6mChwBfTNJinJ_OQXgZAFQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
