Puppet Class: ironic::drivers::ilo
- Defined in:
- manifests/drivers/ilo.pp
Overview
Configure the iLO driver in Ironic
Parameters
- client_timeout
-
(optional) Maximum time in seconds to wait for iLO commands. Should be an interger value Defaults to $::os_service_default.
- client_port
-
(optional) Port to use for iLO operations. Defaults to $::os_service_default.
- use_web_server_for_images
-
(optional) Whether to use the Web server (the same as used for iPXE) to host virtual media images. Defaults to $::os_service_default.
- default_boot_mode
-
(optional) The default boot mode to use when no boot mode is explicitly requested. Accepts values “uefi”, “bios” and “auto”. The “auto” value will use UEFI if it’s available on the machine, BIOS otherwise. Defaults to $::os_service_default.
- package_ensure
-
(optional) The state of the proliantutils package Defaults to ‘present’
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'manifests/drivers/ilo.pp', line 41
class ironic::drivers::ilo (
$client_timeout = $::os_service_default,
$client_port = $::os_service_default,
$use_web_server_for_images = $::os_service_default,
$default_boot_mode = $::os_service_default,
$package_ensure = 'present',
) {
include ironic::deps
include ironic::params
# Configure ironic.conf
ironic_config {
'ilo/client_timeout': value => $client_timeout;
'ilo/client_port': value => $client_port;
'ilo/use_web_server_for_images': value => $use_web_server_for_images;
'ilo/default_boot_mode': value => $default_boot_mode;
}
ensure_packages('python-proliantutils',
{
ensure => $package_ensure,
name => $::ironic::params::proliantutils_package_name,
tag => ['openstack', 'ironic-package'],
}
)
}
|