Merge "Make the 'Could not find data item hacluster_pwd' error a bit clearer"

This commit is contained in:
Zuul 2018-03-20 14:54:30 +00:00 committed by Gerrit Code Review
commit 5e0a26b5cd
1 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,10 @@ class tripleo::profile::base::pacemaker (
fail("Count of ${remote_short_node_names} is not equal to count of ${remote_node_ips}")
}
if hiera('hacluster_pwd', undef) == undef {
fail("The 'hacluster_pwd' hiera key is undefined, did you forget to include ::tripleo::profile::base::pacemaker in your role?")
}
Pcmk_resource <| |> {
tries => 10,
try_sleep => 3,