Masterless Puppet 和 Cannot collect exported resources without storeconfigs being set 警告

Masterless Puppet and Cannot collect exported resources without storeconfigs being set warnings

我正在尝试一种无主流程来设置 OpenStack 云。我使用 puppetlabs-haproxy (v1.5.0) 模块来设置 HAProxy。当我 运行 我的控制节点人偶清单时,就像这样...

puppet apply -e 'include controller'

我收到此警告:

Warning: You cannot collect exported resources without storeconfigs being set; the collection will be ignored at /etc/puppetlabs/code/environments/production/modules/haproxy/manifests/balancermember/collect_exported.pp:7:3

我试过像这样将 storeconfigs 设置为 true:

puppet config set storeconfigs true 

但这会导致此错误:

Error: Cached facts for aos-mgmt-01 failed: Could not find terminus puppetdb for indirection facts
Error: Could not find terminus puppetdb for indirection facts
Error: Could not run: Could not retrieve facts for aos-mgmt-01: Could not find terminus puppetdb for indirection facts

我想我可以忽略警告,但有谁知道我可以做些什么来纠正或禁止警告?

谢谢

puppetlabs haproxy 模块正在收集导出的资源(像这样:https://github.com/puppetlabs/puppetlabs-haproxy/blob/master/manifests/balancermember/collect_exported.pp#L7

你需要一个puppetdb来收集导出的资源,所以你的警告是正常的。 您可以忽略它,也可以使用不需要导出资源的模块。