Check whether an HA resource already exists explicitly
With ephemeral heat we lost the meaning of the 'stack_action' hiera key
which we previously used to distinguish between fresh deployment and
pre-existing deployment (aka redeploy).
Since this hiera key is not available anymore, we simply check if the
resource existed before running puppet. If it did not, we're part of
an initial deployment, if it did exist then this is a redeploy and
in such case, if the config changed we will restart the service on
the bootstrap node.
We also cleanup the molecule steps as there are some redundancies there.
Testing protocol is in the parent change.
Related-Bug: #1942309
Change-Id: I08cff959d7d104ad0e8d833ed6ce06df8ff38b16
(cherry picked from commit b8d9370997ee6f910d401399f72f97272d639c73)
Reviewed: https:/ /review. opendev. org/c/openstack /tripleo- ansible/ +/807761 /opendev. org/openstack/ tripleo- ansible/ commit/ 39429a65166d5e8 f7ca26102a90cef 7236fe031c
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 39429a65166d5e8 f7ca26102a90cef 7236fe031c
Author: Damien Ciabrini <email address hidden>
Date: Mon Aug 30 17:17:05 2021 +0200
Check whether an HA resource already exists explicitly
With ephemeral heat we lost the meaning of the 'stack_action' hiera key
which we previously used to distinguish between fresh deployment and
pre-existing deployment (aka redeploy).
Since this hiera key is not available anymore, we simply check if the
resource existed before running puppet. If it did not, we're part of
an initial deployment, if it did exist then this is a redeploy and
in such case, if the config changed we will restart the service on
the bootstrap node.
We also cleanup the molecule steps as there are some redundancies there.
Testing protocol is in the parent change.
Related-Bug: #1942309
Change-Id: I08cff959d7d104 ad0e8d833ed6ce0 6df8ff38b16 10d401399f72f97 272d639c73)
(cherry picked from commit b8d9370997ee6f9