Merge "Place restrict options to NTP explicitly"

This commit is contained in:
Jenkins 2015-10-15 15:52:53 +00:00 committed by Gerrit Code Review
commit 04cc833a89
2 changed files with 16 additions and 1 deletions

View File

@ -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': }

View File

@ -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