On 1/16/2014 3:16 AM, David Jarosch wrote:
   ### INSTALL NRPE PLUGINS WITHOUT ADDITIONAL RECOMMENDED PACKAGES
   exec { 'nagios-nrpe-plugin':
     unless      => '/usr/bin/dpkg -l |grep nagios-nrpe-plugin',
     require     => Class['nrpe::package'],
     command     => '/usr/bin/apt-get install nagios-nrpe-plugin -y
--no-install-recommends';
   }

I highly recommend turning off recommends globally on Debian based systems. It's a bit more work in the beginning, but you remove a large set of unknown behavior. With Puppet it is best to be explicit in describing the final state of your machines and Recommends is a bit too magical sometimes. It is a gray area based on conversations I've had with other sys admins and it may make sense in your env.

IIRC is was installing nagios-plugins-all with recommends enabled that caused our one and only Puppet related site outage. That package pulled in Nagios which in turn needed apache-prefork which of course removed apache-mpm-worker and brought the site down. Admittedly we would have caught that if I hadn't been developing on a VM with Nagios already installed.

Ramin

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52D816EC.9010305%40badapple.net.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to