On Jun 30, 2010, at 5:02 PM, hernan wrote:

> I'm building a puppet manifest for an Ubuntu machine that needs to
> have both of these on it:
> 
>  package { "memcached":
>    provider => gem,
>    ensure => "0.18.0"
>  }
> 
>  package { "memcached":
>    provider => apt,
>    ensure => installed
>  }
> 
> This fails with the following error:
> 
> err: Could not retrieve catalog: Puppet::Parser::AST::Resource failed
> with error ArgumentError: Duplicate definition: Package[memcached] is
> already defined in file /etc/puppet/manifests/site.pp at line 313;
> cannot redefine at /etc/puppet/manifests/site.pp:221 on node mynode
> 
> How do I get around this?

There was a recent message about this.  The conclusion was, if you are using 
0.25.x or earlier, the only option is to use "exec" for one of them.  I don't 
remember if the unreleased new version in the repository addresses this.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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