diff --git a/manifests/init.pp b/manifests/init.pp index 82ba82c0..6f10e7ff 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -131,7 +131,7 @@ contain ntp::config contain ntp::service - Class['::ntp::install'] -> - Class['::ntp::config'] ~> - Class['::ntp::service'] + Class['::ntp::install'] + -> Class['::ntp::config'] + ~> Class['::ntp::service'] } diff --git a/metadata.json b/metadata.json index 92c1f1d3..1703fbce 100644 --- a/metadata.json +++ b/metadata.json @@ -99,6 +99,9 @@ "2014.09", "2015.03" ] + }, + { + "operatingsystem": "Archlinux" } ], "requirements": [ diff --git a/spec/classes/ntp_spec.rb b/spec/classes/ntp_spec.rb index 10989735..dce39f66 100644 --- a/spec/classes/ntp_spec.rb +++ b/spec/classes/ntp_spec.rb @@ -111,7 +111,7 @@ :noselect_servers => ['a', 'b'], :iburst_enable => false, }} - + it { should contain_file('/etc/ntp.conf').with({ 'content' => /server a (maxpoll 9 )?noselect\nserver b (maxpoll 9 )?noselect\nserver c( maxpoll 9)?\nserver d( maxpoll 9)?/}) } @@ -376,8 +376,8 @@ 'content' => /server \d.freebsd.pool.ntp.org iburst maxpoll 9/, }) end - when 'ArchLinux' - it 'uses the ArchLinux NTP servers' do + when 'Archlinux' + it 'uses the Archlinux NTP servers' do should contain_file('/etc/ntp.conf').with({ 'content' => /server \d.arch.pool.ntp.org/, })