class sshd::debian inherits sshd::linux {
- # the templates for Debian need lsbdistcodename
- ensure_resource('package', 'lsb-release', {'ensure' => 'present' })
- #requires stdlib >= 3.2
- #ensure_packages(['lsb-release'])
-
Package[openssh]{
name => 'openssh-server',
}
}
end
it_behaves_like "a Linux OS"
- it { should contain_package('lsb-release') }
it { should contain_package('openssh') }
it { should contain_class('sshd::debian') }
it { should contain_service('sshd').with(
}
end
it_behaves_like "a Linux OS"
- it { should contain_package('lsb-release') }
it { should contain_package('openssh') }
it { should contain_service('sshd').with({
:hasrestart => true