Takashi Kajinami 3021cd9daf replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Depends-on: https://review.opendev.org/c/openstack/puppet-openstacklib/+/885996
Change-Id: I144468b4f5536a48702e457f2a5db879f3ca217a
2023-06-23 09:26:59 +09:00

36 lines
956 B
Puppet

# == Class: heat::config
#
# This class is used to manage arbitrary Heat configurations.
#
# === Parameters
#
# [*heat_config*]
# (optional) Allow configuration of arbitrary Heat configurations.
# The value is a hash of heat_config resources. Example:
# { 'DEFAULT/foo' => { value => 'fooValue'},
# 'DEFAULT/bar' => { value => 'barValue'}
# }
# In yaml format, Example:
# heat_config:
# DEFAULT/foo:
# value: fooValue
# DEFAULT/bar:
# value: barValue
#
# [*heat_api_paste_ini*]
# (optional) Allow configuration of /etc/heat/api-paste.ini options.
#
# NOTE: The configuration MUST NOT be already handled by this module
# or Puppet catalog compilation will fail with duplicate resources.
#
class heat::config (
Hash $heat_config = {},
Hash $heat_api_paste_ini = {},
) {
include heat::deps
create_resources('heat_config', $heat_config)
create_resources('heat_api_paste_ini', $heat_api_paste_ini)
}