Issue #16781 has been updated by Ken Barber.
This may no longer be needed, we found a work-around here: #15369. It might be that we want to improve something in Puppet still however to make this easier for us ... at the moment we're utilising the caching later to intercept facts for saving, its not using the software 'as intended' though is it? ---------------------------------------- Bug #16781: It's not possible to configure Puppet apply to use PuppetDB as the inventory service https://projects.puppetlabs.com/issues/16781#change-91699 * Author: Nick Lewis * Status: Investigating * Priority: Normal * Assignee: Deepak Giridharagopal * Category: stored configuration * Target version: * Affected Puppet version: * Keywords: * Branch: ---------------------------------------- Due to limitations in the way the indirector and Puppet work, there's no configuration that will make this work properly. Here's the logic: 1. In order for inventory search to work, the primary facts terminus must be PuppetDB (as search is done only on the primary terminus, and never on the cache). 2. In order for Puppet to retrieve the local facts, one of the terminuses must be Facter. 3. Given 1 and 2, the cache terminus must be Facter. 4. The only time Puppet apply save facts is when caching them after finding them. 5. Puppet only saves facts it finds to the cache. 6. Puppet doesn't save facts that it finds from the cache. 7. Given 3, 4, 5, 6, there is no way to get facts saved to PuppetDB. 8. When finding facts, the cache terminus is checked first. 9. The Facter terminus will always return facts, and always for the local host, when facts are found from it. 10. Even if, in spite of 7, there were a way to get facts to PuppetDB, 8 and 9 imply that there would be no way to retrieve the facts for a particular node from PuppetDB. So there's no configuration that lets you save, find, and search facts from PuppetDB, and retrieve them for the local machine for Puppet from Facter. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
