puppetlabs-docker
puppetlabs-docker copied to clipboard
docker::run: make systemd rate-limits configurable
Summary
This PR makes it possible to configure systemd rate-limiting parameters (StartLimitIntervalSec and StartLimitBurst) in unit files created by docker::run.
Why is this needed?
Some container workloads may crash repeatedly on startup due to temporary conditions. Without configurable StartLimit values, systemd may delay or prevent restarts too early. This patch gives users control over these limits to better suit their use case.
Changes
Added two new optional parameters to docker::run:
start_limit_interval_sec and start_limit_burst
Added the same two optional parameters to the main docker class for global configuration:
start_limit_interval_sec and start_limit_burst
Checklist
- [ ] 🟢 Spec tests.
- [ ] 🟢 Acceptance tests.
- [x] Manually verified. (For example
puppet apply)