Ask Your Question
0

Warning: You cannot collect exported resources without storeconfigs being set

asked 2017-06-15 10:49:11 -0500

Red Cricket gravatar image

Hi, I am trying out a masterless process for setting up an OpenStack cloud. I use the puppetlabs-haproxy (v1.5.0) module for setting up HAProxy. When I run my puppet manifest for the controller node like so ...

puppet apply -e 'include controller'

I get this warning:

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

I have tried setting storeconfigs to true like this:

puppet config set storeconfigs true

But that results in this error:

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

I guess I can just ignore the warning but does anyone know what I can do to correct or suppress the warning?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-06-15 12:07:00 -0500

DarylW gravatar image

If you are using a masterless setup, you still need a puppetdb to use exported resources. Otherwise puppet has nowhere to store resources it exports, or find resources that have been exported.

edit flag offensive delete link more

Comments

So I would need to set up PuppetDB on each node? Or on some other system dedicated to running PuppetDB?

Red Cricket gravatar imageRed Cricket ( 2017-06-15 13:09:31 -0500 )edit
1

Yes, you would need a single PuppetDB instance where the 'state' can be stored, that they all can access

DarylW gravatar imageDarylW ( 2017-06-15 13:54:33 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-06-15 10:49:11 -0500

Seen: 22 times

Last updated: Jun 15