There are two standard answers for conflicting items like this.
1) Break out the conflicting items into their own class/definition.
2) Learn to love virtual resources and realize them as necessary.

On Mon, Sep 6, 2010 at 12:30 PM, Douglas Garstang
<doug.garst...@gmail.com>wrote:

> On Mon, Sep 6, 2010 at 12:12 PM, Douglas Garstang
> <doug.garst...@gmail.com> wrote:
> > Yikes.
> >
> > I have two different definitions, one installing components for jboss,
> > and the other installing components for tomcat. I've used a definition
> > rather than a class, because we are running multiple copies of each. I
> > have files and packages in jboss that are needed by files in tomcat.
> > Since objects in the scope of one definition aren't visible to other
> > definitions, how can I make the files in tomcat require => packages
> > that are defined in jboss?
>
> Well, I know I've used definitions in a require before, ones with
> simple, non qualified names. It appears you can't use ones with
> qualified, autoloaded names, because doing this:
>
> require => Jboss::server::instance["${name}"]
>
> yields this:
>
> Sep  6 19:16:17 s_...@app01.pax.livegamer.com puppet-agent[24812]:
> Could not retrieve catalog from remote server: Error 400 on SERVER:
> Syntax error at '::server::instance'; expected ']' at
> /etc/puppet/modules/starterkit/manifests/setup.pp:94 on node
> app01.pax.livegamer.com
>
> *sigh*
>
> Doug.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@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-us...@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.

Reply via email to