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 <LuizFelipe.EiskeKina@windriver.com>
This commit is contained in:
parent
96b8747d0a
commit
aedf7124cb
@ -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}":
|
||||
|
Loading…
x
Reference in New Issue
Block a user