Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion duplicate resources across defined types
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dan Bode  
View profile  
 More options Aug 2 2012, 12:00 pm
From: Dan Bode <d...@puppetlabs.com>
Date: Thu, 2 Aug 2012 09:00:55 -0700
Local: Thurs, Aug 2 2012 12:00 pm
Subject: Re: [Puppet Users] duplicate resources across defined types

On Thu, Aug 2, 2012 at 7:09 AM, Joe Topjian <joe.topj...@cybera.ca> wrote:
> 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_re...

I made a few inline comments

> 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_reso urce.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_reso urce.rb:24

should be fixed in master.

> 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+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.