diff options
author | Micah <micah@leap.se> | 2016-05-24 10:19:24 -0400 |
---|---|---|
committer | Micah <micah@leap.se> | 2016-05-24 10:19:24 -0400 |
commit | b6b29da6f63d5d04f2d587dfa2227b1d6c9ecded (patch) | |
tree | cdb4ee2b1a8f9b8ac4935370f62e1405a3044034 /spec/system/ntp_install_spec.rb |
Squashed 'puppet/modules/ntp/' content from commit 8a554ab
git-subtree-dir: puppet/modules/ntp
git-subtree-split: 8a554ab4b00e25f52a337c4c974fd89f44042957
Diffstat (limited to 'spec/system/ntp_install_spec.rb')
-rw-r--r-- | spec/system/ntp_install_spec.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/spec/system/ntp_install_spec.rb b/spec/system/ntp_install_spec.rb new file mode 100644 index 00000000..39759c5e --- /dev/null +++ b/spec/system/ntp_install_spec.rb @@ -0,0 +1,31 @@ +require 'spec_helper_system' + + +describe 'ntp::install class' do + let(:os) { + node.facts['osfamily'] + } + + case node.facts['osfamily'] + when 'FreeBSD' + packagename = 'net/ntp' + when 'Linux' + case node.facts['operatingsystem'] + when 'ArchLinux' + packagename = 'ntp' + when 'Gentoo' + packagename = 'net-misc/ntp' + end + else + packagename = 'ntp' + end + + puppet_apply(%{ + class { 'ntp': } + }) + + describe package(packagename) do + it { should be_installed } + end + +end |