# JMS resourcejmsresource { 'jms/test':ensure => present,restype => 'javax.jms.Topic',target => 'testCluster',}resourceref { 'jms/test':ensure => present,target => 'testCluster'}
On 2015-06-03 12:18, Gavin Williams wrote:
> Morning all
>
> I'm trying to add some validation to a new type I've written[1] for my
> Puppet-glassfish module[2].
>
> As part of the validation, I need to access the current catalog to make
> sure that there's no another resources defined with the same /:name/ and
> /:target /values.
If name is the same as title of the resource, then by definition there
will never be two resources with the same title/name in the catalog.
This is enforced by the compiler.
If you need a complex key (name and target), then you could use both as
title, and split it up in the type.
- henrik
>
> --
> 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
> <mailto:puppet-users+unsub...@googlegroups.com>.