DRBD has its own authentication mechanism between drbd nodes.
To enable DRBD peer authentication, we need to specify the
following two parameters.
- cram-hmac : The HMAC algorithm to enable peer authentication
- shared-secret: The shared secret used in peer authentication
in drdb resource configuration to enable DRBD peer authentication.
The parameter "secret" already exists in the current implementation.
This change adds a new parameter "hmac" to specify cram-hmac.
If this parameter is undefined, it will set "sha1" as
the current value for compatibility.
Story: 2011139
Task: 50254
Test Plan:
PASS: Confirm hmac and secret has proper values in drbd resource
config when hmac and secret parameters are configured
PASS: Confirm drdb resource config has hmac default value and
no secret when hmac and secret parameters are not configured.
PASS: SX fresh install finishes successfully.
PASS: SX upgrade finishes successfully.
PASS: DX fresh install finishes successfully.
PASS: DX upgrade finishes successfully.
Change-Id: I2f9e6394cf7e89a33befcd6a84dbe36215be4d6d
Signed-off-by: Luiz Felipe Kina <LuizFelipe.EiskeKina@windriver.com>