puppet duplicate resources and virtual resources
Posted
by
user45097
on Server Fault
See other posts from Server Fault
or by user45097
Published on 2012-03-20T22:46:07Z
Indexed on
2012/03/20
23:31 UTC
Read the original article
Hit count: 515
puppet
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
© Server Fault or respective owner