Files
puppet-ironic/manifests/inventory.pp
Takashi Kajinami 9fd0f46f34 Prepare for voxpupuli-puppet-lint-plugins
Fix new lint errors detected when full of the voxpupili lint plugins
are enabled.

Change-Id: Ia996ad7dfba8e667e1d9cdcbdcf5c74f81972c48
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-08-20 10:38:20 +09:00

34 lines
885 B
Puppet

# == Class: ironic::inventory
#
# Configure the inventory parameters
#
# === Parameters
#
# [*data_backend*]
# (Optional) The storage backend for storing introspection data.
# Defaults to $facts['os_service_default'].
#
# [*swift_data_container*]
# (Optional) The Swift introspection data container to store the inventory
# data.
# Defaults to $facts['os_service_default'].
#
class ironic::inventory (
$data_backend = $facts['os_service_default'],
$swift_data_container = $facts['os_service_default'],
) {
include ironic::deps
include ironic::params
if ! is_service_default($data_backend) {
if ! member(['none', 'database', 'swift'], $data_backend) {
fail('Unsupported data backend')
}
}
ironic_config {
'inventory/data_backend': value => $data_backend;
'inventory/swift_data_container': value => $swift_data_container;
}
}