Inject a pdbmux_source provenance fact #13
Reference in New Issue
Block a user
Delete Branch "benvin/source-fact"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
With several PuppetDBs behind one endpoint, consumers cannot tell which backend a node's data came from.
How
pdbmux_sourcefact per certname on/facts, valued with the backend that won the facts merge, and stamp the same key on merged/nodesrecords.environment, which clients index directly.extractqueries, socount()and other aggregates keep the backends' own numbers, and for/factsqueries constrainingname; anamefilter inside aninsubquery still injects.source_fact/source_fact_enabled(PDBMUX_SOURCE_FACT,PDBMUX_SOURCE_FACT_ENABLED), defaulting topdbmux_sourceenabled.Server-side filtering on the fact is a documented v1 limitation;
/factsetsand/inventoryare untouched because pdbmux does not merge them.