Puppet Class: ipmi::mgmt
- Defined in:
- modules/ipmi/manifests/mgmt.pp
Overview
SPDX-License-Identifier: Apache-2.0 tools for IPMI mgmt hosts
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'modules/ipmi/manifests/mgmt.pp', line 3
class ipmi::mgmt {
ensure_packages(['ipmitool'])
file { '/usr/local/sbin/ipmi_mgmt':
owner => 'root',
group => 'root',
mode => '0550',
source => 'puppet:///modules/ipmi/ipmi_mgmt.sh',
}
$key_pair = 'Chassis_Boot_Flags:Boot_Device=NO-OVERRIDE'
if $facts.has_key('ipmi_chassis') and
$facts['ipmi_chassis']['boot_flags']['device'] != 'NO-OVERRIDE' {
exec {"/usr/sbin/ipmi-chassis-config --commit --key-pair='${key_pair}'":}
}
}
|