Last active
September 28, 2017 19:21
-
-
Save op-ct/ae690d5a12ce6d415f8db5822d22cb0b to your computer and use it in GitHub Desktop.
systemd-tmpfiles conf to clean up PE 2016.5.2 puppetdb "dead letter" files left by FACT-1732
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This ages off the ridiculous amount of dead letter files generated by | |
| # PuppetDB when they are older than three days (as a result of FACT-1732) | |
| # | |
| # Place this in a file location like: | |
| # | |
| # /etc/tmpfiles.d/puppetdb-discard-replace-facts.conf | |
| # | |
| # See: | |
| # | |
| # * https://tickets.puppetlabs.com/browse/FACT-1732 | |
| # * https://docs.puppet.com/puppetdb/4.2/maintain_and_tune.html#clean-up-the-dead-letter-office | |
| # * https://developers.redhat.com/blog/2016/09/20/managing-temporary-files-with-systemd-tmpfiles-on-rhel7/ | |
| # * man 5 tmpfiles.d | |
| # | |
| # Notes: | |
| # | |
| # * You can't avoid setting the mode, user, and group when aging off files | |
| # within a directory using systemd-tmpfiles' `d` line. | |
| # * If a `d` line's path doesn't exist, systemd-tmpfiles will create it. | |
| # * So: MAKE SURE the settings below are correct for your version of PuppetDB! | |
| # | |
| d /opt/puppetlabs/server/data/puppetdb/mq/discard/replace-facts/ 0750 pe-puppetdb pe-puppetdb 3d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment