Skip to content

Commit

Permalink
Add facts_match_regex paramter in katello class
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Jun 3, 2024
1 parent f61321e commit b97f2fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions manifests/candlepin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
# Artemis. It should still be signed by the correct Certificate Authority.
# @param loggers
# Configure the Candlepin loggers
# @param facts_match_regex
# Configure the Candlepin facts_match_regex
class katello::candlepin (
Stdlib::Host $db_host = 'localhost',
Optional[Stdlib::Port] $db_port = undef,
Expand All @@ -36,6 +38,7 @@
Boolean $manage_db = true,
Variant[Undef, Deferred, String[1]] $artemis_client_dn = undef,
Hash[String[1], Candlepin::LogLevel] $loggers = {},
Optional[String[1]] $facts_match_regex = undef,
) {
include certs
include katello::params
Expand Down Expand Up @@ -73,6 +76,7 @@
db_ssl_ca => $db_ssl_ca,
manage_db => $manage_db,
loggers => $loggers,
facts_match_regex => $facts_match_regex,
subscribe => Class['certs', 'certs::candlepin'],
} ->
anchor { 'katello::candlepin': } # lint:ignore:anchor_resource
Expand Down
7 changes: 5 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,17 @@
#
# $candlepin_loggers:: Configure the Candlepin loggers
#
# $candlepin_facts_match_regex:: Configure the Candlepin facts_match_regex
#
# $rest_client_timeout:: Timeout for Katello rest API
#
# $hosts_queue_workers:: Configures the number of workers handling the hosts_queue queue.
#
class katello (
Optional[String] $candlepin_oauth_key = undef,
Optional[String] $candlepin_oauth_secret = undef,

Integer[0] $rest_client_timeout = 3600,

Optional[String[1]] $facts_match_regex = undef,

Check warning on line 44 in manifests/init.pp

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

missing documentation for class parameter katello::facts_match_regex (check: parameter_documentation)
String $candlepin_db_host = 'localhost',
Optional[Stdlib::Port] $candlepin_db_port = undef,
String $candlepin_db_name = 'candlepin',
Expand All @@ -51,6 +52,7 @@
Optional[Stdlib::Absolutepath] $candlepin_db_ssl_ca = undef,
Boolean $candlepin_manage_db = true,
Hash[String[1], Candlepin::LogLevel] $candlepin_loggers = {},
Optional[String[1]] $candlepin_facts_match_regex = undef,

Integer[0] $hosts_queue_workers = 1,
) {
Expand Down Expand Up @@ -82,5 +84,6 @@
manage_db => $candlepin_manage_db,
artemis_client_dn => $katello::application::artemis_client_dn,
loggers => $candlepin_loggers,
facts_match_regex => $candlepin_facts_match_regex,
}
}

0 comments on commit b97f2fa

Please sign in to comment.