Skip to content

Commit aee3c03

Browse files
committed
add fix spec tests for redhat
RedHat did set the options on every run. Since we now only set the options file if there are options, we allow an empty option string and set this as default for redhat.
1 parent 1a4fb36 commit aee3c03

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

data/RedHat.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ chrony::config_keys: /etc/chrony.keys
44
chrony::config: /etc/chrony.conf
55
chrony::wait_manage: true
66
chrony::options_file: /etc/sysconfig/chronyd
7+
chrony::options: ''

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@
348348
Optional[Integer[0]] $ntsrotate = undef,
349349
Optional[Integer[1,65535]] $acquisitionport = undef,
350350
Optional[Stdlib::Absolutepath] $options_file = undef,
351-
Optional[String[1]] $options = undef,
351+
Optional[String] $options = undef,
352352
String[1] $options_template = 'chrony/chronyd.epp',
353353
Optional[Integer[0]] $ptpport = undef,
354354
Optional[Integer[0,255]] $ptpdomain = undef,

0 commit comments

Comments
 (0)