Morning all

I'm trying to work out if it's possible to add auto-require logic to some 
of my Glassfish module[1] types. 

>From what I've read about *autorequire*, the standard usage is to match to 
a resource title, as used here[2].
However the challenge I'm hitting is that I don't know the title of the 
resource I need to auto-require in some of my types. However I do know the 
resource type, and a property of that type. 

In other-words, if I want the *application* resource type to auto-require 
the appropriate *domain* resource type, the only information I have to 
relate is based on the '*portbase*' param[3][4].

Is this technically possible? Or am I barking up the wrong tree???

Cheers
Gavin 

[1] https://github.com/fatmcgav/puppet-glassfish/
[2] 
https://github.com/fatmcgav/puppet-glassfish/blob/master/lib/puppet/type/domain.rb#L91-L99
[3] 
https://github.com/fatmcgav/puppet-glassfish/blob/master/lib/puppet/type/domain.rb#L17-L35
[4] 
https://github.com/fatmcgav/puppet-glassfish/blob/master/lib/puppet/type/application.rb#L31-L49

-- 
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/3bb26039-7323-4229-9ede-bccfeb56667f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to