-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy pathbmc.yml.erb
27 lines (24 loc) · 1.49 KB
/
bmc.yml.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
# Can be true, false, or http/https to enable just one of the protocols
:enabled: <%= @module_enabled %>
# Available providers:
# - freeipmi / ipmitool - requires the appropriate package installed, and the rubyipmi gem
# - redfish - requires the redfish_client gem
# - shell - for local reboot control (requires sudo access to /sbin/shutdown for the proxy user)
# - ssh - limited remote control (status, reboot, turn off)
:bmc_default_provider: <%= scope.lookupvar("foreman_proxy::bmc_default_provider") %>
<% if scope.lookupvar("foreman_proxy::bmc_default_provider") == 'ssh' -%>
# default user and ssh key for ssh provider
:bmc_ssh_user: <%= scope.lookupvar("foreman_proxy::bmc_ssh_user") %>
:bmc_ssh_key: <%= scope.lookupvar("foreman_proxy::bmc_ssh_key") %>
# individual commands for actions
:bmc_ssh_powerstatus: "<%= scope.lookupvar("foreman_proxy::bmc_ssh_powerstatus") %>"
:bmc_ssh_powercycle: "<%= scope.lookupvar("foreman_proxy::bmc_ssh_powercycle") %>"
:bmc_ssh_poweroff: "<%= scope.lookupvar("foreman_proxy::bmc_ssh_poweroff") %>"
:bmc_ssh_poweron: "<%= scope.lookupvar("foreman_proxy::bmc_ssh_poweron") %>"
<% elsif scope.lookupvar("foreman_proxy::bmc_default_provider") == 'redfish' -%>
# Redfish provider HTTPS certificate verification:
# - If your BMCs just have the vendor-supplied self-signed certificates, you can set
# bmc_redfish_verify_ssl to false. The default is to perform certificate verification.
:redfish_verify_ssl: <%= scope.lookupvar("foreman_proxy::bmc_redfish_verify_ssl") %>
<% end -%>