On Tuesday, December 9, 2014 8:14:03 AM UTC-6, Felix.Frank wrote:
>
> On 12/01/2014 11:11 PM, Clay Stuckey wrote: 
> > I wrote two manifests for RHEL systems. One removed syslog. The other 
> > installed rsyslog. The syslog removal followed a tragic dependency tree 
> > removing RPMs such as coreutils, rpm, yum and pam. Once the servers 
> > rebooted, they were left in an unusable state. I had to boot in rescue 
> > mode, manually install files to get RPM going and reinstall about 300 
> > RPMs that were removed. 
> > 
> > Is there some way to blacklist the removal of certain critical RPMs that 
> > might be found in a dependency tree? 
>
> Perhaps you could have avoided the kerfluffle by 
>  - doing the replacing of syslog by rsyslog in the same manifest and 
>  - making sure that the syslog package requires the rsyslog package 
>
> ...so that hopefully the system retains a syslog providing package. 
>
> This is all very theoretical - I'm not versed in RHEL operation at all. 
> This approach might also not be viable to you, for reasons that are 
> outside the scope of your request. 
>


I, on the other hand, am fairly well versed in RHEL-family operation 
(though mainly CentOS rather than RHEL itself).  At least in version 6.5 of 
the OS, the rsyslog package provides 'syslog' (as indeed it must to serve 
as a substitute for that package).  It should be possible to install 
rsyslog without first removing syslog, and while both are installed it 
should be possible to remove syslog without removing syslog dependencies 
(but only via ensure => absent, which uses the 'rpm' command; the 'yum 
--remove' issued with ensure => 'purged' will try to remove rsyslog, too).

John

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/ba4035ab-ce45-40e9-9595-ebd738f72722%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to