Make pcsd listen on PacemakerNetwork/PacemakerRemoteNetwork

Configure bind address for pcsd so that it listens on a specific
network instead of all available networks.

Closes-Bug: #1856626
Depends-on: https://review.opendev.org/#/c/700287
Change-Id: Icc78fb96b28cd7a036d958ba78b2075e7c241207
(cherry picked from commit 3056f25bd1)
This commit is contained in:
Takashi Kajinami 2019-12-09 12:29:06 +09:00
parent f66142eb3a
commit 7ee6cdec11
2 changed files with 12 additions and 0 deletions

View File

@ -144,6 +144,12 @@ outputs:
- {get_param: PcsdPassword}
- {get_param: [DefaultPasswords, pcsd_password]}
tripleo::profile::base::pacemaker::remote_authkey: {get_param: PacemakerRemoteAuthkey}
tripleo::profile::base::pacemaker::pcsd_bind_addr:
str_replace:
template:
"%{hiera('$NETWORK')}"
params:
$NETWORK: {get_param: [ServiceNetMap, PacemakerNetwork]}
-
if:
- pcmk_tls_priorities_empty

View File

@ -100,6 +100,12 @@ outputs:
tripleo::fencing::deep_compare: true
enable_fencing: {get_param: EnableFencing}
tripleo::profile::base::pacemaker_remote::remote_authkey: {get_param: PacemakerRemoteAuthkey}
tripleo::profile::base::pacemaker_remote::pcsd_bind_addr:
str_replace:
template:
"%{hiera('$NETWORK')}"
params:
$NETWORK: {get_param: [ServiceNetMap, PacemakerRemoteNetwork]}
pacemaker::corosync::manage_fw: false
hacluster_pwd:
yaql: