Good 10:00 EDT. I'm having trouble understanding ...
# puppet
b
Good 10:00 EDT. I'm having trouble understanding TTLs in the PuppetDB Module. I create a lot of short-lived branching off of my control repo for testing. I'll create a new branch, push that to Github and then via the magic of everything else a new environment is created on my Puppet server. I'll test my changes on a server or two and when I'm satisfied everything is OK, I'll merge the branch into 'production'. Then I'll "puppet agent -t --environment=production' on my testing machines so that the testing environment is now devoid of any active clients. I haven't been able to figure out how to purge the branch/environment in a timely fashion. The environment in PuppetDB doesn't get purged for about a week or so. This causes a bunch of empty environments to show up in my Puppetboard reports. Since the environment no longer has any 'active' clients in it, shouldn't the environment purge relatively quickly? I'd like the empty environments to purge out after 24 hours -- shorter if possible.
I found no "environment" in the REFERENCE.md documentation. Is "report" equivalent to "environment" in this case?
Here's an example of an environment that hasn't had any checkins in a few days.
Is report_ttl the correct parameter to tweak?
c
Purging Environments is more of a Puppet Server thing, where each additional environment loaded into RAM consumes resources. For PuppetDB, the environment is just a field on a fact, catalog, or report dataset. The number of different environment values doesn't really take up more or less space in the database (sure, some B-Tree indexes will have additional branches, but that extra usage rounds to 0 at the scale of dozens or hundreds of distinct values). Facts and Catalogs are replaced on every Puppet run. The report is retained for 14 days, and is likely what causes that environment value to show up in a historical summary.
k
just delete the branch,
git push --delete origin mytestbranch