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; }
}
Written by Andre Timmermann
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Puppet
Authors
Related Tags
#puppet
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#