0d83409381
Add puppet parameters lint (with puppet-lint-param-docs gem) and fix missing documentations, this commit also fix metadata.json file (SPDX license, and open dependencies). Change-Id: I0d590b930a8d0263c3a74d861b9786770be7d183
44 lines
1.1 KiB
Puppet
44 lines
1.1 KiB
Puppet
# == Class: glance::notify::qpid
|
|
#
|
|
# used to configure qpid notifications for glance
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*qpid_password*]
|
|
# (required) Password to connect to the qpid server.
|
|
#
|
|
# [*qpid_username*]
|
|
# (Optional) User to connect to the qpid server.
|
|
# Defaults to 'guest'.
|
|
#
|
|
# [*qpid_hostname*]
|
|
# (Optional) IP or hostname of the qpid server.
|
|
# Defaults to 'localhost'.
|
|
#
|
|
# [*qpid_port*]
|
|
# (Optional) Port of the qpid server.
|
|
# Defaults to 5672.
|
|
#
|
|
# [*qpid_protocol*]
|
|
# (Optional) Protocol to use for qpid (tcp/ssl).
|
|
# Defaults to tcp.
|
|
#
|
|
class glance::notify::qpid(
|
|
$qpid_password,
|
|
$qpid_username = 'guest',
|
|
$qpid_hostname = 'localhost',
|
|
$qpid_port = '5672',
|
|
$qpid_protocol = 'tcp'
|
|
) inherits glance::api {
|
|
|
|
glance_api_config {
|
|
'DEFAULT/notifier_driver': value => 'qpid';
|
|
'DEFAULT/qpid_hostname': value => $qpid_hostname;
|
|
'DEFAULT/qpid_port': value => $qpid_port;
|
|
'DEFAULT/qpid_protocol': value => $qpid_protocol;
|
|
'DEFAULT/qpid_username': value => $qpid_username;
|
|
'DEFAULT/qpid_password': value => $qpid_password, secret => true;
|
|
}
|
|
|
|
}
|