如何all
默认在所有节点中包含此类?
来自我的 manifests/nodes.pp 的片段
class all {
case $operatingsystem {
debian, ubuntu: {
include hosts
include ssh
}
default: {
err("OS NOT supported")
}
}
}
node default {
include all
}
node 'dobby' {
include all ## <<
include apache
include logrotate
}
答案1
node 'dobby' inherits default {.... }
将从节点继承所有定义default
。