Skip to content

Commit

Permalink
Move the outofsync_interval config to foreman::settings
Browse files Browse the repository at this point in the history
Fix syntax errors
  • Loading branch information
Wout Resseler committed Jan 17, 2025
1 parent e5b5321 commit 4843760
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions manifests/settings.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Optional[String] $email_smtp_password = $foreman::email_smtp_password,
Optional[String] $email_reply_address = $foreman::email_reply_address,
Optional[String] $email_subject_prefix = $foreman::email_subject_prefix,
Optional[Integer] $outofsync_interval = $foreman::outofsync_interval,
) {
unless empty($email_delivery_method) {
foreman_config_entry { 'delivery_method':
Expand Down Expand Up @@ -52,4 +53,9 @@
value => $email_subject_prefix,
}
}
unless empty($outofsync_interval) {
foreman_config_entry { 'outofsync_interval':
value => $outofsync_interval,
}
}
}
3 changes: 0 additions & 3 deletions templates/settings.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@
- '<%= proxy %>'
<% end -%>

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

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

0 comments on commit 4843760

Please sign in to comment.