Add bmc access method as service parameter

This update modifies mtce puppet inservice manifest
to add and update mtc.ini with a new bmc_access_method
config option.

Test Plan:

PASS: Verify service parameter change and handling.
PASS: Verify puppet Tox tests pass

Change-Id: Idcb86d1324bed8d428415c049fbc9c6df0dca650
Story: 2005861
Task: 36668
Depends-on: https://review.opendev.org/#/c/682736/
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
This commit is contained in:
Eric MacDonald 2019-09-17 16:19:15 -04:00
parent 5291624d0f
commit e35326d692
3 changed files with 17 additions and 0 deletions

View File

@ -43,6 +43,21 @@ heartbeat_failure_action = <%= @heartbeat_failure_action %>
; system service-parameter-modify platform maintenance mnfa_threshold=<value>
mnfa_threshold = <%= @mnfa_threshold %>
; Board Management Controller (BMC) Access Method
; Controls the access method maintenance uses when communicating with
; provisioned BMCs for power/reset control and sensor monitoring.
; Supported Methods are
; ipmi = use ipmi for bmc communications
; redfish = use redfish for bmc communications
; learn = use redfish if BMC supports it, otherwise use ipmi
; Default is learn
; Changes are automatically detected and handled by maintenance when
; modified through system service parameter CLI command.
; To modify execute:
; system service-parameter-modify platform maintenance bmc_access_method=<method>
; system service-parameter-apply platform
bmc_access_method = <%= @bmc_access_method %>
[timeouts]
worker_boot_timeout = <%= @worker_boot_timeout %> ; The max time (seconds) that Mtce waits for the mtcAlive
controller_boot_timeout = <%= @controller_boot_timeout %> ; message after which it will time out and fail the host.

View File

@ -62,6 +62,7 @@ platform::mtce::agent::params::heartbeat_failure_threshold: 10
platform::mtce::agent::params::heartbeat_degrade_threshold: 6
platform::mtce::agent::params::mnfa_threshold: 2
platform::mtce::agent::params::mnfa_timeout: 0
platform::mtce::agent::params::bmc_access_method: 'learn'
# influxdb configuration for collectd
platform::influxdb::params::bind_address: ':25826'

View File

@ -17,6 +17,7 @@ class platform::mtce::params (
$mtce_multicast = undef,
$mnfa_threshold = 2,
$mnfa_timeout = 0,
$bmc_access_method = 'learn',
$sm_client_port = 2224,
$sm_server_port = 2124,
) { }