cc9cvg
Last Updated: February 25, 2016
·
1.524K
· darktim

Install packages without colliding with other recipes

If you want to install a package within a node definition, you may get a collision with other recipes. You may wrap a check around the install request:

if !defined(package['package-name']) {
package { 'package-name': ensure => installed; }
}