本帖最后由 SlowLaris 于 2016-01-26 11:07 编辑
3.8.4
class test {
file { "/tmp/$hostname.txt": content => "Hello World!"; }
}
hostname <%= fqdn %>
Exec { path => "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/sbin:/bin"}
$fileserver = "server.puppet.com"
$ntpserver = "pool.ntp.org"
Package { provider => "yum" }
node 'client.puppet.com' {
include test
}
node 'client.puppet.com' {
include test
}


配置文件如下:

报错如下:

另外,这个版本已经不支持import了,不知道该怎么处理。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证0级讲师