Merge "Place restrict options to NTP explicitly"
This commit is contained in:
commit
04cc833a89
|
@ -12,6 +12,12 @@ class { 'ntp':
|
|||
panic => '0',
|
||||
stepout => '5',
|
||||
minpoll => '3',
|
||||
restrict => [
|
||||
'-4 default kod nomodify notrap nopeer noquery',
|
||||
'-6 default kod nomodify notrap nopeer noquery',
|
||||
'127.0.0.1',
|
||||
'::1',
|
||||
],
|
||||
}
|
||||
|
||||
class { 'cluster::ntp_ocf': }
|
||||
|
|
|
@ -9,6 +9,15 @@ describe manifest do
|
|||
should contain_class('ntp').with('disable_monitor' => 'true')
|
||||
end
|
||||
|
||||
test_ubuntu_and_centos manifest
|
||||
it 'should pass restrictions explicitly' do
|
||||
should contain_class('ntp').with(
|
||||
'restrict' => [
|
||||
'-4 default kod nomodify notrap nopeer noquery',
|
||||
'-6 default kod nomodify notrap nopeer noquery',
|
||||
'127.0.0.1',
|
||||
'::1',
|
||||
])
|
||||
end
|
||||
end
|
||||
test_ubuntu_and_centos manifest
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue