mirror of
https://github.com/ardichoke/puppet-arpwatch.git
synced 2026-11-19 04:15:36 -05:00
Add Debian support
This commit is contained in:
1 parent
d79f35a823
commit
41d9b4d879
8 files changed
+83
-68
No files matched your search
@@ -5,6 +5,7 @@ describe 'arpwatch', type: 'class' do
|
||||
it {
|
||||
should contain_package('arpwatch').with({'ensure'=>'installed'})
|
||||
should contain_file('/etc/sysconfig/arpwatch').with({'ensure'=>'file'})
|
||||
should contain_service('arpwatch').with({'ensure'=>'running', 'enable'=>true})
|
||||
}
|
||||
end
|
||||
context 'On RedHat 6 with no parameters' do
|
||||
@@ -12,6 +13,7 @@ describe 'arpwatch', type: 'class' do
|
||||
it {
|
||||
should contain_package('arpwatch').with({'ensure'=>'installed'})
|
||||
should contain_file('/etc/sysconfig/arpwatch').with({'ensure'=>'file'})
|
||||
should contain_service('arpwatch').with({'ensure'=>'running', 'enable'=>true})
|
||||
}
|
||||
end
|
||||
context 'On RedHat 5 with no parameters' do
|
||||
@@ -19,6 +21,23 @@ describe 'arpwatch', type: 'class' do
|
||||
it {
|
||||
should contain_package('arpwatch').with({'ensure'=>'installed'})
|
||||
should contain_file('/etc/sysconfig/arpwatch').with({'ensure'=>'file'})
|
||||
should contain_service('arpwatch').with({'ensure'=>'running', 'enable'=>true})
|
||||
}
|
||||
end
|
||||
context 'On Debian 6 with no parameters' do
|
||||
let (:facts) { { osfamily: 'Debian', operatingsystemmajrelease: '6' }}
|
||||
it {
|
||||
should contain_package('arpwatch').with({'ensure'=>'installed'})
|
||||
should contain_file('/etc/default/arpwatch').with({'ensure'=>'file'})
|
||||
should contain_service('arpwatch').with({'ensure'=>'running', 'enable'=>true})
|
||||
}
|
||||
end
|
||||
context 'On Debian 7 with no parameters' do
|
||||
let (:facts) { { osfamily: 'Debian', operatingsystemmajrelease: '7' }}
|
||||
it {
|
||||
should contain_package('arpwatch').with({'ensure'=>'installed'})
|
||||
should contain_file('/etc/default/arpwatch').with({'ensure'=>'file'})
|
||||
should contain_service('arpwatch').with({'ensure'=>'running', 'enable'=>true})
|
||||
}
|
||||
end
|
||||
context 'On an unknown OS' do
|
||||
|
||||
Reference in new issue
Block a user