puppet duplicate resources and virtual resources
- by user45097
Overview
Hi just started using Puppet and have been unable to suss something.
Problem
Because of normalization when I add 2 classes to a node with packages that have the same dependencies it fails.
In simple terms have duplicate resources - in this case the package libssl.
Note: packages are being held to prevent latest packages being installed.
QUestion
What's the best practice way to get round this?
class ssh {
package { 'openssh-server':
ensure = installed,
require = libssl
}
package { 'libssl':
ensure = installed,
}
}
class apache {
package { 'apache':
ensure = installed,
require = libssl,
}
package { 'libssl':
ensure = installed,
}
}
node server {
include apache
include openssl-server