Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix directory /etc/nagios/nrpe.d/ issue (#492)
* Fix directory /etc/nagios/nrpe.d/ issue Under certain deployment conditions, the charm can attempt to write to the /etc/nagios/nrpe.d/ directory before it exists. This directory is created by the nrpe charm, but if the hacluster gets installed first, then it can be triggered to attempt to set up the nrpe entries before the directory can be created by nrpe. This change (and the associated charm-helpers change) ensures that the charm will delay the nrpe config until the directory is available (and thus, the nrpe charm is fully installed) Related Bug: LP: #1882557 * Simplify the check so it doesn't do the write. Co-authored-by: David Ames <david.ames@canonical.com>
- Loading branch information