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,
El 27/06/2014 06:13, "Seby" <[email protected]> escribió:

> 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
> <https://groups.google.com/d/msgid/puppet-users/fc0ef54b-5cdf-4e29-aa3c-8532948fcb49%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAF_B3dc%2B9HmG5twPuX%2Bz3TAGdD4oy%2BHy%2BU8eL4FCZUGqpo08Tg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to