On Fri, Aug 19, 2011 at 12:56 AM, Jakov Sosic <jso...@srce.hr> wrote:

> Hi.
>
> I encountered a following problem, if I state for example:
>
> package{"aspell-en": ensure => absent, }
> package{"aspell":    ensure => absent, }
>
> I get error in logs because of dependencies. It seems that puppet uses
> 'yum' for installation on CentOS and 'rpm -e' for removal of packages,
> so it cannot handle this kind of dependencies:
>
> # rpm -e --test aspell-en
> error: Failed dependencies:
>        aspell-en is needed by (installed) aspell-0.60.3-7.1.x86_64
> # rpm -e --test aspell
> error: Failed dependencies:
>        aspell >= 12:0.60 is needed by (installed) aspell-en-6.0-2.1.x86_64
>
>
> Do you have any idea or advice how to solve this kind of problems?
>
> I've searched the list and found:
>
> http://www.mail-archive.com/puppet-users@googlegroups.com/msg03702.html
>
> and consensus is that "RPM circular dependencies have nothing to do with
> puppet". OK, but any advice on how to circumvent this issue as elegant
> as possible?
>
> The right answer is

*ensure => purged* as this tell puppet to  use yum -y (and not rpm) in the
yum provider.

But yes the docu could be better perhaps.

hth

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

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