--
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 puppet-users...@googlegroups.com.
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 can create a custom fact that reports if the tomcat is installed or not, and do the installation process in this case.
Moreover you could add the tomcat version to this custom fact too. This way you will have an inventory, can decide when apply a patch and when not ...
Regards,
--
How are you doing the installation? With an exec? If so there are some notes about making those idempotent on the type reference page:Have a look at the creates attribute.If it's not an exec, maybe provide some code so people have an idea what you're doing.
Rich
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 puppet-users+unsubscribe@googlegroups.com.
Yea, I'm using the exec to do all custom things. I see the create attribute and will try it out and let you know.--
On Friday, June 27, 2014 11:08:25 AM UTC+5:30, Rich Burroughs wrote:How are you doing the installation? With an exec? If so there are some notes about making those idempotent on the type reference page:Have a look at the creates attribute.If it's not an exec, maybe provide some code so people have an idea what you're doing.Rich
On Thursday, June 26, 2014, Seby <seby.f...@gmail.com> wrote: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 puppet-users+unsubscribe@googlegroups.com.
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/adce7fa9-841f-4b71-8023-c78f7bfe806c%40googlegroups.com.
Hi All,