Prepare for voxpupuli-puppet-lint-plugins

Fix new lint errors detected when full of the voxpupili lint plugins
are enabled.

Change-Id: I3109b052d5eb21f6f26174390a9d5bf2756c6ec2
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-08-20 00:04:40 +09:00
parent f1b90ab3f7
commit e14a87dbb1
38 changed files with 27 additions and 81 deletions

View File

@@ -44,7 +44,7 @@
class { 'magnum': class { 'magnum':
default_transport_url => 'rabbit://magnum:an_even_bigger_secret@127.0.0.1:5672', default_transport_url => 'rabbit://magnum:an_even_bigger_secret@127.0.0.1:5672',
rabbit_use_ssl => false, rabbit_use_ssl => false,
notification_driver => 'messagingv2', notification_driver => 'messagingv2',
} }
@@ -57,4 +57,3 @@
class { 'magnum::certificates': class { 'magnum::certificates':
cert_manager_type => 'local', cert_manager_type => 'local',
} }

View File

@@ -69,7 +69,7 @@
# middleware should parse the proxy headers or not.(boolean value) # middleware should parse the proxy headers or not.(boolean value)
# Defaults to $facts['os_service_default'] # Defaults to $facts['os_service_default']
# #
class magnum::api( class magnum::api (
$package_ensure = 'present', $package_ensure = 'present',
Boolean $enabled = true, Boolean $enabled = true,
Boolean $manage_service = true, Boolean $manage_service = true,
@@ -85,7 +85,6 @@ class magnum::api(
$workers = $facts['os_workers'], $workers = $facts['os_workers'],
$enable_proxy_headers_parsing = $facts['os_service_default'], $enable_proxy_headers_parsing = $facts['os_service_default'],
) inherits magnum::params { ) inherits magnum::params {
include magnum::deps include magnum::deps
include magnum::params include magnum::params
include magnum::policy include magnum::policy
@@ -144,7 +143,6 @@ class magnum::api(
# On any uwsgi config change, we must restart Magnum API. # On any uwsgi config change, we must restart Magnum API.
Magnum_api_uwsgi_config<||> ~> Service['magnum-api'] Magnum_api_uwsgi_config<||> ~> Service['magnum-api']
} elsif $service_name == 'httpd' { } elsif $service_name == 'httpd' {
service { 'magnum-api': service { 'magnum-api':
ensure => 'stopped', ensure => 'stopped',
@@ -165,8 +163,7 @@ class magnum::api(
include magnum::keystone::authtoken include magnum::keystone::authtoken
} }
oslo::middleware {'magnum_config': oslo::middleware { 'magnum_config':
enable_proxy_headers_parsing => $enable_proxy_headers_parsing, enable_proxy_headers_parsing => $enable_proxy_headers_parsing,
} }
} }

View File

@@ -123,7 +123,6 @@ class magnum::capi_helm (
String[1] $csi_cinder_availability_zone = $facts['os_service_default'], String[1] $csi_cinder_availability_zone = $facts['os_service_default'],
String[1] $app_cred_interface_type = $facts['os_service_default'], String[1] $app_cred_interface_type = $facts['os_service_default'],
) inherits magnum::params { ) inherits magnum::params {
include magnum::deps include magnum::deps
magnum_config { magnum_config {
@@ -145,7 +144,7 @@ class magnum::capi_helm (
} }
if $kubeconfig_file and $kubeconfig { if $kubeconfig_file and $kubeconfig {
file{ $kubeconfig_file: file { $kubeconfig_file:
owner => $kubeconfig_owner, owner => $kubeconfig_owner,
group => $kubeconfig_group, group => $kubeconfig_group,
mode => $kubeconfig_mode, mode => $kubeconfig_mode,
@@ -155,4 +154,3 @@ class magnum::capi_helm (
} }
} }
} }

View File

@@ -16,13 +16,10 @@ class magnum::certificates (
$cert_manager_type = $facts['os_service_default'], $cert_manager_type = $facts['os_service_default'],
$storage_path = $facts['os_service_default'], $storage_path = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
magnum_config { magnum_config {
'certificates/cert_manager_type': value => $cert_manager_type; 'certificates/cert_manager_type': value => $cert_manager_type;
'certificates/storage_path': value => $storage_path; 'certificates/storage_path': value => $storage_path;
} }
} }

View File

@@ -26,7 +26,6 @@ class magnum::cinder (
$default_boot_volume_type = $facts['os_service_default'], $default_boot_volume_type = $facts['os_service_default'],
$default_boot_volume_size = $facts['os_service_default'], $default_boot_volume_size = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
magnum_config { magnum_config {
@@ -35,6 +34,4 @@ class magnum::cinder (
'cinder/default_boot_volume_type': value => $default_boot_volume_type; 'cinder/default_boot_volume_type': value => $default_boot_volume_type;
'cinder/default_boot_volume_size': value => $default_boot_volume_size; 'cinder/default_boot_volume_size': value => $default_boot_volume_size;
} }
} }

View File

@@ -11,7 +11,6 @@
class magnum::client ( class magnum::client (
$package_ensure = 'present' $package_ensure = 'present'
) { ) {
include magnum::deps include magnum::deps
include magnum::params include magnum::params
@@ -20,5 +19,4 @@ class magnum::client (
name => $magnum::params::client_package, name => $magnum::params::client_package,
tag => 'openstack', tag => 'openstack',
} }
} }

View File

@@ -14,11 +14,10 @@
# communication with the OpenStack service. # communication with the OpenStack service.
# Defaults to publicURL # Defaults to publicURL
class magnum::clients::barbican( class magnum::clients::barbican (
$region_name = $magnum::clients::region_name, $region_name = $magnum::clients::region_name,
$endpoint_type = $magnum::clients::endpoint_type, $endpoint_type = $magnum::clients::endpoint_type,
) inherits magnum::clients { ) inherits magnum::clients {
include magnum::deps include magnum::deps
include magnum::params include magnum::params

View File

@@ -34,7 +34,7 @@
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.
# Defaults to false # Defaults to false
# #
class magnum::clients::cinder( class magnum::clients::cinder (
$region_name = $magnum::clients::region_name, $region_name = $magnum::clients::region_name,
$endpoint_type = $magnum::clients::endpoint_type, $endpoint_type = $magnum::clients::endpoint_type,
$api_version = $facts['os_service_default'], $api_version = $facts['os_service_default'],
@@ -43,7 +43,6 @@ class magnum::clients::cinder(
$key_file = $magnum::clients::key_file, $key_file = $magnum::clients::key_file,
$insecure = $magnum::clients::insecure $insecure = $magnum::clients::insecure
) inherits magnum::clients { ) inherits magnum::clients {
include magnum::deps include magnum::deps
include magnum::params include magnum::params

View File

@@ -34,8 +34,7 @@
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.
# Defaults to false # Defaults to false
# #
class magnum::clients::glance (
class magnum::clients::glance(
$region_name = $magnum::clients::region_name, $region_name = $magnum::clients::region_name,
$endpoint_type = $magnum::clients::endpoint_type, $endpoint_type = $magnum::clients::endpoint_type,
$api_version = $facts['os_service_default'], $api_version = $facts['os_service_default'],
@@ -44,7 +43,6 @@ class magnum::clients::glance(
$key_file = $magnum::clients::key_file, $key_file = $magnum::clients::key_file,
$insecure = $magnum::clients::insecure $insecure = $magnum::clients::insecure
) inherits magnum::clients { ) inherits magnum::clients {
include magnum::deps include magnum::deps
include magnum::params include magnum::params

View File

@@ -34,8 +34,7 @@
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.
# Defaults to false # Defaults to false
# #
class magnum::clients::heat (
class magnum::clients::heat(
$region_name = $magnum::clients::region_name, $region_name = $magnum::clients::region_name,
$endpoint_type = $magnum::clients::endpoint_type, $endpoint_type = $magnum::clients::endpoint_type,
$api_version = $facts['os_service_default'], $api_version = $facts['os_service_default'],
@@ -44,7 +43,6 @@ class magnum::clients::heat(
$key_file = $magnum::clients::key_file, $key_file = $magnum::clients::key_file,
$insecure = $magnum::clients::insecure $insecure = $magnum::clients::insecure
) inherits magnum::clients { ) inherits magnum::clients {
include magnum::deps include magnum::deps
include magnum::params include magnum::params

View File

@@ -13,12 +13,11 @@
# (optional) Type of endpoint in Identity service catalog to use for # (optional) Type of endpoint in Identity service catalog to use for
# communication with the OpenStack service. # communication with the OpenStack service.
# Defaults to publicURL # Defaults to publicURL
#
class magnum::clients::magnum( class magnum::clients::magnum (
$region_name = $magnum::clients::region_name, $region_name = $magnum::clients::region_name,
$endpoint_type = $magnum::clients::endpoint_type, $endpoint_type = $magnum::clients::endpoint_type,
) inherits magnum::clients { ) inherits magnum::clients {
include magnum::deps include magnum::deps
include magnum::params include magnum::params

View File

@@ -30,7 +30,7 @@
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.
# Defaults to false # Defaults to false
# #
class magnum::clients::neutron( class magnum::clients::neutron (
$region_name = $magnum::clients::region_name, $region_name = $magnum::clients::region_name,
$endpoint_type = $magnum::clients::endpoint_type, $endpoint_type = $magnum::clients::endpoint_type,
$ca_file = $magnum::clients::ca_file, $ca_file = $magnum::clients::ca_file,
@@ -38,7 +38,6 @@ class magnum::clients::neutron(
$key_file = $magnum::clients::key_file, $key_file = $magnum::clients::key_file,
$insecure = $magnum::clients::insecure $insecure = $magnum::clients::insecure
) inherits magnum::clients { ) inherits magnum::clients {
include magnum::deps include magnum::deps
include magnum::params include magnum::params

View File

@@ -34,8 +34,8 @@
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.
# Defaults to false # Defaults to false
# #
#
class magnum::clients::nova( class magnum::clients::nova (
$region_name = $magnum::clients::region_name, $region_name = $magnum::clients::region_name,
$endpoint_type = $magnum::clients::endpoint_type, $endpoint_type = $magnum::clients::endpoint_type,
$api_version = $facts['os_service_default'], $api_version = $facts['os_service_default'],
@@ -44,7 +44,6 @@ class magnum::clients::nova(
$key_file = $magnum::clients::key_file, $key_file = $magnum::clients::key_file,
$insecure = $magnum::clients::insecure $insecure = $magnum::clients::insecure
) inherits magnum::clients { ) inherits magnum::clients {
include magnum::deps include magnum::deps
include magnum::params include magnum::params

View File

@@ -30,7 +30,7 @@
# (optional) If set, then the server's certificate will not be verified. # (optional) If set, then the server's certificate will not be verified.
# Defaults to false # Defaults to false
# #
class magnum::clients::octavia( class magnum::clients::octavia (
$region_name = $magnum::clients::region_name, $region_name = $magnum::clients::region_name,
$endpoint_type = $magnum::clients::endpoint_type, $endpoint_type = $magnum::clients::endpoint_type,
$ca_file = $magnum::clients::ca_file, $ca_file = $magnum::clients::ca_file,
@@ -38,7 +38,6 @@ class magnum::clients::octavia(
$key_file = $magnum::clients::key_file, $key_file = $magnum::clients::key_file,
$insecure = $magnum::clients::insecure, $insecure = $magnum::clients::insecure,
) inherits magnum::clients { ) inherits magnum::clients {
include magnum::deps include magnum::deps
include magnum::params include magnum::params

View File

@@ -28,7 +28,6 @@ class magnum::cluster (
$temp_cache_dir = $facts['os_service_default'], $temp_cache_dir = $facts['os_service_default'],
$pre_delete_lb_timeout = $facts['os_service_default'], $pre_delete_lb_timeout = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
magnum_config { magnum_config {

View File

@@ -16,7 +16,6 @@ class magnum::cluster_template (
$kubernetes_allowed_network_drivers = $facts['os_service_default'], $kubernetes_allowed_network_drivers = $facts['os_service_default'],
$kubernetes_default_network_driver = $facts['os_service_default'], $kubernetes_default_network_driver = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
magnum_config { magnum_config {

View File

@@ -24,14 +24,13 @@
# (optional) Number of conductor workers. # (optional) Number of conductor workers.
# Defaults to $facts['os_workers'] # Defaults to $facts['os_workers']
# #
class magnum::conductor( class magnum::conductor (
Boolean $enabled = true, Boolean $enabled = true,
Boolean $manage_service = true, Boolean $manage_service = true,
$package_ensure = 'present', $package_ensure = 'present',
$auth_strategy = 'keystone', $auth_strategy = 'keystone',
$workers = $facts['os_workers'], $workers = $facts['os_workers'],
) { ) {
include magnum::db include magnum::db
include magnum::deps include magnum::deps
include magnum::params include magnum::params

View File

@@ -27,7 +27,6 @@ class magnum::config (
Hash $magnum_config = {}, Hash $magnum_config = {},
Hash $magnum_api_paste_ini = {}, Hash $magnum_api_paste_ini = {},
) { ) {
include magnum::deps include magnum::deps
create_resources('magnum_config', $magnum_config) create_resources('magnum_config', $magnum_config)

View File

@@ -54,7 +54,6 @@ class magnum::db (
$mysql_enable_ndb = $facts['os_service_default'], $mysql_enable_ndb = $facts['os_service_default'],
$database_db_max_retries = $facts['os_service_default'], $database_db_max_retries = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
oslo::db { 'magnum_config': oslo::db { 'magnum_config':

View File

@@ -33,7 +33,7 @@
# Only used with mysql modules >= 2.2. # Only used with mysql modules >= 2.2.
# Defaults to 'utf8_general_ci' # Defaults to 'utf8_general_ci'
# #
class magnum::db::mysql( class magnum::db::mysql (
String[1] $password, String[1] $password,
$dbname = 'magnum', $dbname = 'magnum',
$user = 'magnum', $user = 'magnum',
@@ -42,7 +42,6 @@ class magnum::db::mysql(
$collate = 'utf8_general_ci', $collate = 'utf8_general_ci',
$allowed_hosts = undef $allowed_hosts = undef
) { ) {
include magnum::deps include magnum::deps
openstacklib::db::mysql { 'magnum': openstacklib::db::mysql { 'magnum':
@@ -58,5 +57,4 @@ class magnum::db::mysql(
Anchor['magnum::db::begin'] Anchor['magnum::db::begin']
~> Class['magnum::db::mysql'] ~> Class['magnum::db::mysql']
~> Anchor['magnum::db::end'] ~> Anchor['magnum::db::end']
} }

View File

@@ -24,14 +24,13 @@
# (Optional) Privileges given to the database user. # (Optional) Privileges given to the database user.
# Default to 'ALL' # Default to 'ALL'
# #
class magnum::db::postgresql( class magnum::db::postgresql (
$password, $password,
$dbname = 'magnum', $dbname = 'magnum',
$user = 'magnum', $user = 'magnum',
$encoding = undef, $encoding = undef,
$privileges = 'ALL', $privileges = 'ALL',
) { ) {
include magnum::deps include magnum::deps
openstacklib::db::postgresql { 'magnum': openstacklib::db::postgresql { 'magnum':
@@ -45,5 +44,4 @@ class magnum::db::postgresql(
Anchor['magnum::db::begin'] Anchor['magnum::db::begin']
~> Class['magnum::db::postgresql'] ~> Class['magnum::db::postgresql']
~> Anchor['magnum::db::end'] ~> Anchor['magnum::db::end']
} }

View File

@@ -16,12 +16,11 @@
# (Optional) Timeout for the execution of the db_sync # (Optional) Timeout for the execution of the db_sync
# Defaults to 300 # Defaults to 300
# #
class magnum::db::sync( class magnum::db::sync (
$user = 'magnum', $user = 'magnum',
$extra_params = '', $extra_params = '',
$db_sync_timeout = 300, $db_sync_timeout = 300,
) { ) {
include magnum::deps include magnum::deps
include magnum::params include magnum::params
@@ -42,5 +41,4 @@ class magnum::db::sync(
notify => Anchor['magnum::dbsync::end'], notify => Anchor['magnum::dbsync::end'],
tag => 'openstack-db', tag => 'openstack-db',
} }
} }

View File

@@ -17,6 +17,7 @@ class magnum::docker_registry (
$swift_region = $facts['os_service_default'], $swift_region = $facts['os_service_default'],
$swift_registry_container = $facts['os_service_default'], $swift_registry_container = $facts['os_service_default'],
) { ) {
include magnum::deps
magnum_config { magnum_config {
'docker_registry/swift_region': value => $swift_region; 'docker_registry/swift_region': value => $swift_region;

View File

@@ -28,7 +28,6 @@ class magnum::drivers (
Variant[Array, Openstacklib::ServiceDefault] $disabled_drivers = $facts['os_service_default'], Variant[Array, Openstacklib::ServiceDefault] $disabled_drivers = $facts['os_service_default'],
Variant[Array, Openstacklib::ServiceDefault] $enabled_beta_drivers = $facts['os_service_default'], Variant[Array, Openstacklib::ServiceDefault] $enabled_beta_drivers = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
magnum_config { magnum_config {

View File

@@ -46,7 +46,6 @@ class magnum::healthcheck (
$disable_by_file_paths = $facts['os_service_default'], $disable_by_file_paths = $facts['os_service_default'],
$enable_by_file_paths = $facts['os_service_default'], $enable_by_file_paths = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
oslo::healthcheck { 'magnum_config': oslo::healthcheck { 'magnum_config':

View File

@@ -174,7 +174,7 @@
# will be run through a green thread. # will be run through a green thread.
# Defaults to undef # Defaults to undef
# #
class magnum( class magnum (
$package_ensure = 'present', $package_ensure = 'present',
$notification_transport_url = $facts['os_service_default'], $notification_transport_url = $facts['os_service_default'],
$notification_driver = $facts['os_service_default'], $notification_driver = $facts['os_service_default'],
@@ -210,7 +210,6 @@ class magnum(
# DEPRECATED PARAMETERS # DEPRECATED PARAMETERS
$rabbit_heartbeat_in_pthread = undef, $rabbit_heartbeat_in_pthread = undef,
) { ) {
include magnum::deps include magnum::deps
include magnum::params include magnum::params
include magnum::policy include magnum::policy
@@ -265,5 +264,4 @@ class magnum(
topics => $notification_topics, topics => $notification_topics,
retry => $notification_retry, retry => $notification_retry,
} }
} }

View File

@@ -97,7 +97,6 @@ class magnum::keystone::auth (
Keystone::EndpointUrl $admin_url = 'http://127.0.0.1:9511/v1', Keystone::EndpointUrl $admin_url = 'http://127.0.0.1:9511/v1',
Keystone::EndpointUrl $internal_url = 'http://127.0.0.1:9511/v1', Keystone::EndpointUrl $internal_url = 'http://127.0.0.1:9511/v1',
) { ) {
include magnum::deps include magnum::deps
$real_service_name = pick($service_name, $auth_name) $real_service_name = pick($service_name, $auth_name)
@@ -124,5 +123,4 @@ class magnum::keystone::auth (
internal_url => $internal_url, internal_url => $internal_url,
admin_url => $admin_url, admin_url => $admin_url,
} }
} }

View File

@@ -189,7 +189,7 @@
# "public", "internal" or "admin". # "public", "internal" or "admin".
# Defaults to $facts['os_service_default']. # Defaults to $facts['os_service_default'].
# #
class magnum::keystone::authtoken( class magnum::keystone::authtoken (
String[1] $password, String[1] $password,
$username = 'magnum', $username = 'magnum',
$auth_url = 'http://localhost:5000', $auth_url = 'http://localhost:5000',
@@ -228,7 +228,6 @@ class magnum::keystone::authtoken(
$service_type = $facts['os_service_default'], $service_type = $facts['os_service_default'],
$interface = $facts['os_service_default'], $interface = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
keystone::resource::authtoken { 'magnum_config': keystone::resource::authtoken { 'magnum_config':

View File

@@ -88,7 +88,6 @@ class magnum::keystone::domain (
$domain_admin_id = undef, $domain_admin_id = undef,
$domain_admin_domain_id = undef, $domain_admin_domain_id = undef,
) { ) {
include magnum::deps include magnum::deps
include magnum::params include magnum::params
@@ -142,5 +141,4 @@ class magnum::keystone::domain (
'trust/trustee_keystone_interface': value => $keystone_interface; 'trust/trustee_keystone_interface': value => $keystone_interface;
'trust/trustee_keystone_region_name': value => $keystone_region_name; 'trust/trustee_keystone_region_name': value => $keystone_region_name;
} }
} }

View File

@@ -53,7 +53,7 @@
# against any certificate authorities. # against any certificate authorities.
# Defaults to $facts['os_service_default'] # Defaults to $facts['os_service_default']
# #
class magnum::keystone::keystone_auth( class magnum::keystone::keystone_auth (
$password, $password,
$username = 'magnum', $username = 'magnum',
$auth_url = 'http://localhost:5000', $auth_url = 'http://localhost:5000',
@@ -67,7 +67,6 @@ class magnum::keystone::keystone_auth(
$certfile = $facts['os_service_default'], $certfile = $facts['os_service_default'],
$insecure = $facts['os_service_default'], $insecure = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
if is_service_default($system_scope) { if is_service_default($system_scope) {

View File

@@ -101,7 +101,7 @@
# Defaults to $facts['os_service_default'] # Defaults to $facts['os_service_default']
# Example: 'Y-%m-%d %H:%M:%S' # Example: 'Y-%m-%d %H:%M:%S'
# #
class magnum::logging( class magnum::logging (
$use_syslog = $facts['os_service_default'], $use_syslog = $facts['os_service_default'],
$use_json = $facts['os_service_default'], $use_json = $facts['os_service_default'],
$use_journal = $facts['os_service_default'], $use_journal = $facts['os_service_default'],
@@ -122,7 +122,6 @@ class magnum::logging(
$instance_uuid_format = $facts['os_service_default'], $instance_uuid_format = $facts['os_service_default'],
$log_date_format = $facts['os_service_default'], $log_date_format = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
oslo::log { 'magnum_config': oslo::log { 'magnum_config':
@@ -146,5 +145,4 @@ class magnum::logging(
instance_format => $instance_format, instance_format => $instance_format,
instance_uuid_format => $instance_uuid_format, instance_uuid_format => $instance_uuid_format,
} }
} }

View File

@@ -36,6 +36,5 @@ class magnum::params {
default: { default: {
fail("Unsupported osfamily: ${facts['os']['family']}") fail("Unsupported osfamily: ${facts['os']['family']}")
} }
} # Case $facts['os']['family'] } # Case $facts['os']['family']
} }

View File

@@ -54,7 +54,6 @@ class magnum::policy (
$policy_dirs = $facts['os_service_default'], $policy_dirs = $facts['os_service_default'],
Boolean $purge_config = false, Boolean $purge_config = false,
) { ) {
include magnum::deps include magnum::deps
include magnum::params include magnum::params
@@ -82,5 +81,4 @@ class magnum::policy (
policy_default_rule => $policy_default_rule, policy_default_rule => $policy_default_rule,
policy_dirs => $policy_dirs, policy_dirs => $policy_dirs,
} }
} }

View File

@@ -11,6 +11,7 @@
class magnum::quota ( class magnum::quota (
$max_clusters_per_project = $facts['os_service_default'] $max_clusters_per_project = $facts['os_service_default']
) { ) {
include magnum::deps
magnum_config { magnum_config {
'quotas/max_clusters_per_project': value => $max_clusters_per_project; 'quotas/max_clusters_per_project': value => $max_clusters_per_project;

View File

@@ -17,12 +17,11 @@
# is set. # is set.
# Defaults to $facts['os_service_default'] # Defaults to $facts['os_service_default']
# #
class magnum::reports( class magnum::reports (
$log_dir = $facts['os_service_default'], $log_dir = $facts['os_service_default'],
$file_event_handler = $facts['os_service_default'], $file_event_handler = $facts['os_service_default'],
$file_event_handler_interval = $facts['os_service_default'], $file_event_handler_interval = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
oslo::reports { 'magnum_config': oslo::reports { 'magnum_config':

View File

@@ -146,7 +146,6 @@ class magnum::wsgi::apache (
$headers = undef, $headers = undef,
$request_headers = undef, $request_headers = undef,
) { ) {
include magnum::deps include magnum::deps
include magnum::params include magnum::params

View File

@@ -25,11 +25,10 @@ class magnum::wsgi::uwsgi (
$processes = $facts['os_workers'], $processes = $facts['os_workers'],
$threads = 32, $threads = 32,
$listen_queue_size = 100, $listen_queue_size = 100,
){ ) {
include magnum::deps include magnum::deps
if $facts['os']['name'] != 'Debian'{ if $facts['os']['name'] != 'Debian' {
warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.') warning('This class is only valid for Debian, as other operating systems are not using uwsgi by default.')
} }

View File

@@ -31,7 +31,6 @@ class magnum::x509 (
$term_of_validity = $facts['os_service_default'], $term_of_validity = $facts['os_service_default'],
$rsa_key_size = $facts['os_service_default'], $rsa_key_size = $facts['os_service_default'],
) { ) {
include magnum::deps include magnum::deps
magnum_config { magnum_config {
@@ -41,6 +40,4 @@ class magnum::x509 (
'x509/term_of_validity': value => $term_of_validity; 'x509/term_of_validity': value => $term_of_validity;
'x509/rsa_key_size': value => $rsa_key_size; 'x509/rsa_key_size': value => $rsa_key_size;
} }
} }