On Tue, Sep 20, 2011 at 5:27 AM, Matthew Willsher < matthew.wills...@gmail.com> wrote:
> > > On Sep 20, 1:02 pm, Matthew Willsher <matthew.wills...@gmail.com> > wrote: > > On Sep 19, 4:06 pm, Matt <matthew.wills...@gmail.com> wrote: > > > > > On Sep 19, 3:52 pm, John Kennedy <skeb...@gmail.com> wrote: > > > > > > Would it be possible to create a class to install Glassfish and > require that > > > > class to be fulfilled before? I actually thought that > > > > require => Package['glassfish'] > > > > would have the desired effect... > > > > > That's what I was expecting but it fails when it can't find asadmin > > > then if I create a dummy asadmin it files when it can't find > > > passwordfile. > > > > Further reading reveals this to be a function of the provider > > suitability checks. Apparently the use of stages (>=2.6) can be used > > to resolve this, so there's my way forward. > > Sorry to post to my own reply and so soon afterwards, but stages > appear not to have resolved this. It seems that the provider tests are > done irrespective of stages, so at this point it looks as though it's > not possible to use providers that exist as the result of the action > of another resource. > > stages were definitely not designed to solve this. It has been a known issue for a while and has a few work-arounds. The pip provider works around this by not using the commands method, and instead implements lazy pip. Another example of a work around if to create a default provider that does nothing except determine suitability, then you can explicitly specify provider => 'real_provider' during compile time you can see an example of this approach in the rabbitmq provider https://github.com/puppetlabs/puppetlabs-rabbitmq > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@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. > > -- "Join us for PuppetConf <http://bit.ly/puppetconfsig>, September 22nd and 23rd in Portland, OR." <http://bit.ly/puppetconfsig> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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.