9fe25f3a23
This adds defined anchor points for external modules to hook into the software install, config and service dependency chain. This allows external modules to manage software installation (virtualenv, containers, etc) and service management (pacemaker) without needing rely on resources that may change or be renamed. Change-Id: I31c023824e428ad0fc3dad30b4d3103aaa747597
59 lines
1.6 KiB
Puppet
59 lines
1.6 KiB
Puppet
# == Class: ironic::cors
|
|
#
|
|
# Configure the ironic cors
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*allowed_origin*]
|
|
# (Optional) Indicate whether this resource may be shared with the domain
|
|
# received in the requests "origin" header.
|
|
# (string value)
|
|
# Defaults to $::os_service_default.
|
|
#
|
|
# [*allow_credentials*]
|
|
# (Optional) Indicate that the actual request can include user credentials.
|
|
# (boolean value)
|
|
# Defaults to $::os_service_default.
|
|
#
|
|
# [*expose_headers*]
|
|
# (Optional) Indicate which headers are safe to expose to the API.
|
|
# (list value)
|
|
# Defaults to $::os_service_default.
|
|
#
|
|
# [*max_age*]
|
|
# (Optional) Maximum cache age of CORS preflight requests.
|
|
# (integer value)
|
|
# Defaults to $::os_service_default.
|
|
#
|
|
# [*allow_methods*]
|
|
# (Optional) Indicate which methods can be used during the actual request.
|
|
# (list value)
|
|
# Defaults to $::os_service_default.
|
|
#
|
|
# [*allow_headers*]
|
|
# (Optional) Indicate which header field names may be used during the actual
|
|
# request.
|
|
# (list value)
|
|
# Defaults to $::os_service_default.
|
|
#
|
|
class ironic::cors (
|
|
$allowed_origin = $::os_service_default,
|
|
$allow_credentials = $::os_service_default,
|
|
$expose_headers = $::os_service_default,
|
|
$max_age = $::os_service_default,
|
|
$allow_methods = $::os_service_default,
|
|
$allow_headers = $::os_service_default,
|
|
) {
|
|
|
|
include ::ironic::deps
|
|
|
|
oslo::cors { 'ironic_config':
|
|
allowed_origin => $allowed_origin,
|
|
allow_credentials => $allow_credentials,
|
|
expose_headers => $expose_headers,
|
|
max_age => $max_age,
|
|
allow_methods => $allow_methods,
|
|
allow_headers => $allow_headers,
|
|
}
|
|
}
|