Skip to content

Commit

Permalink
install mdadm package
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Nov 6, 2013
1 parent 8438d72 commit 02f858e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
# include mdadm
#
class mdadm {
include mdadm::params

package { $mdadm::params::mdadm_package:
ensure => present,
}
}
7 changes: 5 additions & 2 deletions spec/classes/mdadm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

describe 'mdadm', :type => :class do

describe 'for osfamily RedHat' do
it { should contain_class('mdadm') }
context 'on osfamily RedHat' do
let(:facts) {{ :osfamily => 'RedHat' }}

it { should contain_package('mdadm').with_ensure('present') }
it { should include_class('mdadm::params') }
end

end

0 comments on commit 02f858e

Please sign in to comment.