lint params

This commit is contained in:
Arne Teuke
2025-03-02 16:28:57 +01:00
parent 7341c24bc9
commit f09b452830
17 changed files with 165 additions and 275 deletions

View File

@@ -1,18 +1,18 @@
## cd_haproxy::main::config.pp
# Module name: cd_haproxy
## haproxy_cd::main::config.pp
# Module name: haproxy_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages all aspects of configuring the module logic for
# cd_haproxy.
# haproxy_cd.
##############################################################################
class cd_haproxy::main::config (
class haproxy_cd::main::config (
) inherits cd_haproxy::params {
) inherits haproxy_cd::params {
include cd_haproxy::server::service
include haproxy_cd::server::service
if $hy_manage_fail2ban == true {
include cd_haproxy::monitoring::fail2ban
include haproxy_cd::monitoring::fail2ban
}
}

View File

@@ -1,14 +1,14 @@
## cd_haproxy::main::dirs.pp
# Module name: cd_haproxy
## haproxy_cd::main::dirs.pp
# Module name: haproxy_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages all directories required for cd_haproxy.
# @summary Class manages all directories required for haproxy_cd.
###############################################################################
class cd_haproxy::main::dirs (
class haproxy_cd::main::dirs (
) inherits cd_haproxy::params {
) inherits haproxy_cd::params {
if $fqdn == $hy_host_fqdn {
require cd_haproxy::main::user
require haproxy_cd::main::user
# main dir
file { $hy_main_dir:

View File

@@ -1,14 +1,14 @@
## cd_haproxy::main::files.pp
# Module name: cd_haproxy
## haproxy_cd::main::files.pp
# Module name: haproxy_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages all configuration files required for cd_haproxy.
# @summary Class manages all configuration files required for haproxy_cd.
##############################################################################
class cd_haproxy::main::files (
class haproxy_cd::main::files (
) inherits cd_haproxy::params {
) inherits haproxy_cd::params {
if $fqdn == $hy_host_fqdn {
require cd_haproxy::main::dirs
require haproxy_cd::main::dirs
# create the concat target
concat {$hy_main_config:
@@ -154,7 +154,7 @@ class cd_haproxy::main::files (
selrole => object_r,
seltype => syslog_conf_t,
seluser => system_u,
content => template('cd_haproxy/rsyslog/10_haproxy.conf.erb'),
content => template('haproxy_cd/rsyslog/10_haproxy.conf.erb'),
# notify => Service['rsyslog'], # only if using cd_rsyslog
}
}

View File

@@ -1,12 +1,12 @@
## cd_haproxy::main::install.pp
# Module name: cd_haproxy
## haproxy_cd::main::install.pp
# Module name: haproxy_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manage all aspects of installing binaries required for
# cd_haproxy
# haproxy_cd
###############################################################################
class cd_haproxy::main::install (
class haproxy_cd::main::install (
) inherits cd_haproxy::params {
) inherits haproxy_cd::params {
if $fqdn == $hy_host_fqdn {
package {$reqpackages:

View File

@@ -1,14 +1,14 @@
## cd_haproxy::main::user.pp
# Module name: cd_haproxy
## haproxy_cd::main::user.pp
# Module name: haproxy_cd
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
# @summary Class manages service users for cd_haproxy.
# @summary Class manages service users for haproxy_cd.
#############################################################################
class cd_haproxy::main::user (
class haproxy_cd::main::user (
) inherits cd_haproxy::params {
) inherits haproxy_cd::params {
if $fqdn == $hy_host_fqdn {
require cd_haproxy::main::install
require haproxy_cd::main::install
# manage user
user { $hy_user_name: