[英]puppet remote copy files from a host other than the puppet-server
有没有一种方法可以将文件从同一域(mydom.org)中的另一个主机(bar)复制到一个主机(foo),而这两个主机都不是puppet-server,但是它们都已运行puppetd ? 我正在寻找类似于cfengine copy中的服务器方法的内容,其中可以为源文件提供服务器名称。 这是我尝试过和失败的:
node 'foo.mydom.org' inherits default {
include foo_class::setup
}
在puppet-server节点的modules / foo_class / setup.pp中定义的foo_class :: setup。
class foo_class::setup {
file {
"etc_passwd_file" :
path => "/etc/passwd",
source => "puppet://bar.mydom.org//${path_to_file}",
}
}
跑步时
puppet --noop --server=puppet --no-daemonize --verbose --onetime
我收到错误消息:
" ..... Could not evaluate: Could not retrieve information from environment production source(s) puppet://bar.mydom.org//${path_to_file} at /etc/puppet/modules/foo_class/manifests/setup.pp ...."
不幸的是,仅使用Puppet无法做到这一点。 人偶代理程序进程能够侦听和接受连接,但是它们不像人偶主服务器那样实现文件服务器。 人偶代理程序的侦听行为用于puppet kick
功能,自Puppet 3.0起不推荐使用puppet kick
功能,而推荐使用MCollective。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.