How to export resources (storeconfigs) to puppetDB

asked 2018-04-30 09:59:20 -0500

mgconno gravatar image

updated 2018-05-01 08:50:50 -0500

I have a directory lets call it /mystuff. In it it can have multiple files ending with *.crl. Over time the number of files can change and I have no control over what they are called.

1st Question: I want to export those files to puppetDB but I can't hard code the names of the files since the list of files can grow. Can this be done without using an exec command?

2nd Question: If I can do #1 then I want to collect those files from puppetDB and again I don't know the names of the files in advance other than knowing they end in *.crl and there won't be any other files in the db ending in *.crl. Is this possible?

edit retag flag offensive close merge delete


this seems a duplicate question but still I can throw some light. what you are trying to do is export the arbitrary files in PuppetDB and collect it along with some handy things which I guess is not possible. Please check here:

Mr_Sharma gravatar imageMr_Sharma ( 2018-05-02 00:37:37 -0500 )edit

can you query facts from puppetdb? If so, the only thing that I could think of is a pre-existing fact that would list what those files are, and you could do a lookup, but it wouldn't be an exported resource.

DarylW gravatar imageDarylW ( 2018-05-02 08:32:20 -0500 )edit