Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何以“FACTER_”为前缀的环境变量都会自动添加到因子集合中。我已经成功添加了一个“FACTER_”环境变量,它确实出现在facter -p列表中,所以它应该可以被puppet使用......
但是,问题是在我的 .pp 文件中,应该设置为 FACTER_ 值的变量名称为空(或不存在)
我还需要做些什么才能将 FACTER_ 变量转换为 puppet 变量吗?
干杯
您很可能会设置系统,以便FACTER_变量在交互式 shell 中可用。如果您希望您的后台代理尊重他们,这是不明智的。
FACTER_
我可以看到两种直接的方法:
/etc/facter/facts.d
我建议后者。