我正在尝试建立一个OpenStack云的无主过程。我使用puppetlabs-haproxy(v1.5.0)模块来设置HAProxy。当我为控制器节点运行我的puppet清单时,就像这样......
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
我想我可以忽略警告,但有人知道我可以做些什么来纠正或压制警告吗?
由于
答案 0 :(得分:1)
puppetlabs haproxy模块正在收集导出的资源(如:https://github.com/puppetlabs/puppetlabs-haproxy/blob/master/manifests/balancermember/collect_exported.pp#L7)
您需要puppetdb来收集导出的资源,因此您的警告是正常的。 您可以忽略它,也可以使用不需要导出资源的模块。