Skip to content

Commit 4843760

Browse files
author
Wout Resseler
committed
Move the outofsync_interval config to foreman::settings
Fix syntax errors
1 parent e5b5321 commit 4843760

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

manifests/settings.pp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
Optional[String] $email_smtp_password = $foreman::email_smtp_password,
1111
Optional[String] $email_reply_address = $foreman::email_reply_address,
1212
Optional[String] $email_subject_prefix = $foreman::email_subject_prefix,
13+
Optional[Integer] $outofsync_interval = $foreman::outofsync_interval,
1314
) {
1415
unless empty($email_delivery_method) {
1516
foreman_config_entry { 'delivery_method':
@@ -52,4 +53,9 @@
5253
value => $email_subject_prefix,
5354
}
5455
}
56+
unless empty($outofsync_interval) {
57+
foreman_config_entry { 'outofsync_interval':
58+
value => $outofsync_interval,
59+
}
60+
}
5561
}

templates/settings.yaml.erb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
- '<%= proxy %>'
6060
<% end -%>
6161

62-
# Configure out of sync interval
63-
:outofsync_interval: <%= scope.lookupvar("foreman::outofsync_interval") %>
64-
6562
<% end -%>
6663
# Individual logging types can be toggled on/off here
6764
:loggers:

0 commit comments

Comments
 (0)