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

@@ -57,4 +57,3 @@
class { 'magnum::certificates': class { 'magnum::certificates':
cert_manager_type => 'local', cert_manager_type => 'local',
} }

View File

@@ -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',
@@ -168,5 +166,4 @@ class magnum::api(
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 {
@@ -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

@@ -18,7 +18,6 @@ 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

@@ -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,7 +34,6 @@
# (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,
@@ -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,7 +34,6 @@
# (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,
@@ -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

@@ -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,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::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,
@@ -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

@@ -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

@@ -31,7 +31,6 @@ class magnum::conductor(
$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

@@ -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

@@ -31,7 +31,6 @@ class magnum::db::postgresql(
$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

@@ -21,7 +21,6 @@ class magnum::db::sync(
$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

@@ -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

@@ -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

@@ -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

@@ -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

@@ -22,7 +22,6 @@ class magnum::reports(
$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

@@ -26,7 +26,6 @@ class magnum::wsgi::uwsgi (
$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' {

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;
} }
} }