Skip to content

Commit

Permalink
Merge pull request #384 from bastelfreak/archlinux
Browse files Browse the repository at this point in the history
add archlinux to metadata.json
  • Loading branch information
hunner authored Mar 29, 2017
2 parents f60f21f + af0302a commit 86a6530
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}
3 changes: 3 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
"2014.09",
"2015.03"
]
},
{
"operatingsystem": "Archlinux"
}
],
"requirements": [
Expand Down
6 changes: 3 additions & 3 deletions spec/classes/ntp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)?/})
}
Expand Down Expand Up @@ -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/,
})
Expand Down

0 comments on commit 86a6530

Please sign in to comment.