Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/npwalker/flush_jruby_pool
A Puppet Module to Setup a Cron Job for Flushing the Jruby Pool in Puppetserver
https://github.com/npwalker/flush_jruby_pool
Last synced: about 1 month ago
JSON representation
A Puppet Module to Setup a Cron Job for Flushing the Jruby Pool in Puppetserver
- Host: GitHub
- URL: https://github.com/npwalker/flush_jruby_pool
- Owner: npwalker
- Created: 2015-11-17T17:58:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-19T21:45:29.000Z (about 9 years ago)
- Last Synced: 2024-05-08T22:04:05.945Z (8 months ago)
- Language: Puppet
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Before Using This Module
Place the following heira key in your common.yaml or defaults.yaml so it applies to all of your masters.
```
---
puppet_enterprise::master::puppetserver::puppet_admin_certs:
- "%{::clientcert}"
```This hiera key will allow the certificate on each compile master to access it's own admin API where as by default only the pe-internal-classifier cert can access.
# To Use This Module
```
include flush_jruby_pool
```This will install a cron job to hit the admin API on puppetserver every 4 hours to delete all of the jruby instances and regenerate them.
# To Change How Often The Cron Job Runs
You can supply the `$cron_hour` parameter. The default is every four hours.
Here is an example to run every 2 hours
```
class { 'flush_jruby_pool' :
cron_hour => '*/2',
}
```