0
如果我在自己的puppet模塊中有兩個類,而類「b」對類「a」有依賴關係。我怎麼能在我的require
聲明中表達這樣的:如何使用Puppet需要另一個自定義類
# a.pp
class rehan::a {
package { 'javaruntime':
ensure => latest,
provider => chocolatey
}
}
# b.pp
class rehan::b {
file { 'C:\foo':
ensure => present,
require => Package['?????']
}
}
# site.pp
node default {
include rehan::a
include rehan::b
}