Hi Rafal,

the before meta-parameter would help you here:

package{ 'Lib_Utils':
  ensure => absent,
  before  => Package['MegaCli'],
}

Cheers

Steve

On Monday, February 11, 2013 11:00:58 AM UTC, Rafał Radecki wrote:
>
> Hi All.
>
> I would like to remove packages in a specified order because they are 
> connected with dependencies.
> I use:
> #cat /etc/redhat-release;uname -r
> CentOS release 6.3 (Final)
> 2.6.32-279.9.1.el6.centos.plus.x86_64
> #rpm -qa | grep -i puppet
> puppet-3.1.0-1.el6.noarch
>
> In my module manifest:
> class base::dell {
> ..
>         package { "Lib_Utils": ensure => absent }
>         package { "MegaCli": ensure => absent }
> ..
> }
> Is there a way to ensure that MegaCli will be uninstalled before Lib_Utils 
> and then Lib_Utils will be removed? How can I in puppet language enforce 
> package dependencies in this case?
>
> Best regards,
> Rafal Radecki.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to