Hi Dan,

> virtual resources are definitely intended to solve the same problem, but
> they would not work for this use case b/c multiple declarations of the same
> virtual resource still result in the duplicate definition failures.
>
> virtual resources can also be problematic b/c collecting resources also
> realizes them as a side effect.
>

I see. Thank you.

I incorporated the ensure_resource function into the vhost type:

https://github.com/jtopjian/puppetlabs-apache/tree/jtopjian-ensure_resource

It seems to pass the test manifest that I threw at it, but it is giving
these warnings:

/usr/lib/ruby/1.8/puppet/parser/functions/create_resources.rb:1: warning:
multiple values for a block parameter (2 for 1)
from /usr/lib/ruby/1.8/puppet/parser/scope.rb:464
/usr/lib/ruby/1.8/puppet/parser/functions/create_resources.rb:1: warning:
multiple values for a block parameter (2 for 1)
from
/etc/puppet/modules/ensure_resource/lib/puppet/parser/functions/ensure_resource.rb:24
/usr/lib/ruby/1.8/puppet/parser/functions/create_resources.rb:1: warning:
multiple values for a block parameter (2 for 1)
from
/etc/puppet/modules/ensure_resource/lib/puppet/parser/functions/ensure_resource.rb:24

Thanks,
Joe


-- 
Joe Topjian
Systems Administrator
Cybera Inc.

www.cybera.ca

Cybera is a not-for-profit organization that works to spur and support
innovation, for the economic benefit of Alberta, through the use
of cyberinfrastructure.

-- 
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.

Reply via email to