Skip to content

Commit

Permalink
Add parameter outofsync_interval
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout Resseler committed Jan 9, 2025
1 parent 974293d commit e5b5321
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@
#
# $oidc_algorithm:: The algorithm used to encode the JWT in the OpenID provider.
#
# $outofsync_interval Duration in minutes after servers are classed as out of sync.
#
#
class foreman (
Stdlib::HTTPUrl $foreman_url = $foreman::params::foreman_url,
Expand Down Expand Up @@ -336,6 +338,7 @@
Array[String[1]] $oidc_audience = [],
Optional[String[1]] $oidc_issuer = undef,
String[1] $oidc_algorithm = 'RS256',
Integer $outofsync_interval = 30,
) inherits foreman::params {
assert_type(Array[Stdlib::IP::Address], $trusted_proxies)

Expand Down
1 change: 1 addition & 0 deletions spec/classes/foreman_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@
oidc_audience: ['cloack-app'],
oidc_issuer: 'https://keycloak.top.com/realms/myrealm',
oidc_algorithm: 'RS256',
outofsync_interval: 30,
}
end

Expand Down
5 changes: 4 additions & 1 deletion templates/settings.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@
:trusted_proxies:
<% scope.lookupvar('foreman::trusted_proxies').each do |proxy| -%>
- '<%= proxy %>'
<% end -%>
<% end -%>

# Configure out of sync interval
:outofsync_interval: <%= scope.lookupvar("foreman::outofsync_interval") %>

<% end -%>
# Individual logging types can be toggled on/off here
Expand Down

0 comments on commit e5b5321

Please sign in to comment.