Skip to content

Commit 88cfffb

Browse files
authored
Merge pull request voxpupuli#229 from cirrax/dev_acceptance
disable local clock sync for acceptance tests / fix options_file on Arch Linux
2 parents 732a062 + d8abdce commit 88cfffb

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

data/Archlinux.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ chrony::config: /etc/chrony.conf
88
chrony::dumpdir: /var/lib/chrony
99
chrony::rtconutc: true
1010
chrony::wait_manage: true
11+
chrony::options_file: /etc/sysconfig/chronyd

spec/acceptance/class_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
describe 'chrony class:' do
66
it 'works idempotently with no errors' do
77
pp = <<-EOS
8-
class { 'chrony': }
8+
class { 'chrony':
9+
options => '-F 0 -x',
10+
}
911
EOS
1012

1113
# Run it twice and test for idempotency
@@ -45,6 +47,7 @@ class { 'chrony': }
4547
class { 'chrony':
4648
wait_ensure => 'running',
4749
wait_enable => true,
50+
options => '-F 0 -x',
4851
}
4952
EOS
5053

spec/setup_acceptance_node.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
ensure => directory,
44
}
55
}
6+
if fact('os.family') == 'Archlinux' {
7+
file { '/etc/sysconfig':
8+
ensure => directory,
9+
}
10+
}

0 commit comments

Comments
 (0)