tomcat module

65 views
Skip to first unread message

Berry Sizemore

unread,
Jan 12, 2012, 7:49:01 PM1/12/12
to Puppet Users
Hi,

Some time ago, Nan wrote a Tomcat module for my company. I have added
it to module forge here:
http://forge.puppetlabs.com/users/multiverse/modules/Tomcat/releases/1

I have recently been wrestling with the behavior of the module and
could use some help.

[root@puppetmaster pkg]# uname -a
Linux 2.6.18-238.el5xen SMP x86_64 x86_64 x86_64 GNU/Linux
Note: some information is suppressed.

[root@puppetmaster puppet]# puppet --version
2.6.9 (Puppet Enterprise 1.2.4)

When I create new Tomcat instances for the first time, let's say there
are two, the task completes excellently, including deploying/exploding
my wars.

When I create a third Tomcat instance, I get error messages that make
no sense to me. My suspicion is that I need to use different syntax.
Our goal is to reduce the amount of time that is consumed deploying
new wars. Here is a snapshot I took of the initial success, and the
subsequent failure. You can see the current code I am using at the
forge link above.

Here is the screenshot: http://www.multiverse.org/tomcat-one-run.jpg
- if the link gives you 404 or redirects with 403, you may have to
type it in by hand. Sorry about that!

Thanks,
Berry

Berry Sizemore

unread,
Jan 12, 2012, 8:20:20 PM1/12/12
to Puppet Users
Here is a digest of a conversation on IRC:

***

I am trying to figure out why puppet builds out a tree successfully,
but fails to do it a 2nd time when I add more data into my YAML file.

I believe http://docs.puppetlabs.com/learning/definedtypes.html
explains the problem

You cannot instantiate tomcat::war { 'foo': } twice on one node

Example YAML file
http://pastebin.com/sRkR4nas

***

Berry Sizemore

unread,
Jan 17, 2012, 5:22:26 PM1/17/12
to Puppet Users
After groking the defined types link, it everything looked good. The
issue was that the data needed to be unique for this to work. I
ensured that each of my instances had a unique name in its YAML file,
as well for the names of the apps. Now it is cruising right along.

Thanks,
Berry

On Jan 12, 5:20 pm, Berry Sizemore <berry.sizem...@gmail.com> wrote:
> Here is a digest of a conversation on IRC:
>
> ***
>
> I am trying to figure out why puppet builds out a tree successfully,
> but fails to do it a 2nd time when I add more data into my YAML file.
>
> I believehttp://docs.puppetlabs.com/learning/definedtypes.html
Reply all
Reply to author
Forward
0 new messages