linting the project

This commit is contained in:
Arne Teuke
2025-03-02 13:15:07 +01:00
parent 74b0684ae1
commit 95848273ba
10 changed files with 24 additions and 166 deletions

View File

@@ -6,7 +6,5 @@
class cd_alloy::main::config (
) inherits cd_alloy::params {
include cd_alloy::main::service
}

View File

@@ -6,18 +6,17 @@
class cd_alloy::main::dirs (
) inherits cd_alloy::params {
require cd_alloy::main::install
# main config dir
file { $ay_main_dir:
ensure => directory,
owner => 'root',
group => 'alloy',
mode => '0770',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
ensure => directory,
owner => 'root',
group => 'alloy',
mode => '0770',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
}
}

View File

@@ -6,23 +6,21 @@
class cd_alloy::main::files (
) inherits cd_alloy::params {
require cd_alloy::main::dirs
# Ensure log_targets is always an array
$log_targets_array = Array($cd_alloy::params::ay_log_targets, true)
file { $ay_main_file:
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
content => template('cd_alloy/config.alloy.erb'),
notify => Service[$ay_service],
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
selrange => s0,
selrole => object_r,
seltype => etc_t,
seluser => system_u,
content => template('cd_alloy/config.alloy.erb'),
notify => Service[$ay_service],
}
}

View File

@@ -1,12 +1,11 @@
## cd_alloy::main::install.pp
# Module name: cd_alloy
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages module logic for the cd_alloy module
# @summary Class installs packages for the cd_alloy module
###############################################################################
class cd_alloy::main::install (
) inherits cd_alloy::params {
require cd_alloy::main::yumrepo
package { $reqpackages:

View File

@@ -6,13 +6,12 @@
class cd_alloy::main::service (
) inherits cd_alloy::params {
require cd_alloy::main::files
service { $ay_service:
ensure => running,
hasstatus => true,
hasrestart => true,
enable => true,
ensure => running,
hasstatus => true,
hasrestart => true,
enable => true,
}
}