如何在木偶服务器

时间:2017-07-05 09:45:52

标签: puppet facter

Puppet Master在RHEL 6.6中安装了3.6.2版本。

我在/var/lib/puppet/lib/facter/last_run.rb内的代理服务器(Puppet 3.8.4)上创建了一个事实。 该文件的内容只是回显系统日期:

require 'facter'

Facter.add("last_run") do
  setcode do
    Facter::Util::Resolution.exec('date')
  end
end

sudo facter -p last_run在主服务器中触发时返回sysdate

我的问题是:如果我在客户端服务器中执行puppet agent -t,它不会加载事实

0 个答案:

没有答案
相关问题