From aedf7124cb938c70f8ab0a60f0a620a92a509d8a Mon Sep 17 00:00:00 2001 From: Luiz Felipe Kina Date: Wed, 3 Jul 2024 17:02:11 -0300 Subject: [PATCH] DRBD: Add hmac/secret param support Add drbd_secret variable when platform::drbd::params::secure is false. This variable needs to be declared as it is different from the params declared on the class platform::drbd::params. Closes-Bug: 2071857 Change-Id: Ie601518137cecaea70340eeda9487fb1c814d2fd Signed-off-by: Luiz Felipe Kina --- puppet-manifests/src/modules/platform/manifests/drbd.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/puppet-manifests/src/modules/platform/manifests/drbd.pp b/puppet-manifests/src/modules/platform/manifests/drbd.pp index 3ad337294..12ca92053 100644 --- a/puppet-manifests/src/modules/platform/manifests/drbd.pp +++ b/puppet-manifests/src/modules/platform/manifests/drbd.pp @@ -71,6 +71,9 @@ define platform::drbd::filesystem ( if $::platform::drbd::params::secure == true { $drbd_hmac = $::platform::drbd::params::hmac $drbd_secret = $::platform::drbd::params::secret + } else { + $drbd_hmac = undef + $drbd_secret = undef } if ($ensure == 'absent') { exec { "umount drbd device ${device}":