Skip to content

Commit

Permalink
add official support for el7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Jun 7, 2015
1 parent 178bafa commit 4670766
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ file (one without any fragments).

* el6.x
* el5.x
* el7.x
* Debian/Ubuntu

### Puppet Version Compatibility
Expand Down
9 changes: 6 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,24 @@
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"5",
"6"
"6",
"7"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"5",
"6"
"6",
"7"
]
},
{
"operatingsystem": "Scientific",
"operatingsystemrelease": [
"5",
"6"
"6",
"7"
]
},
{
Expand Down
12 changes: 11 additions & 1 deletion spec/acceptance/udev_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
require 'spec_helper_acceptance'

describe 'udev class' do
maj = fact_on 'master', 'operatingsystemmajrelease'

package_name = nil
case maj.to_i
when 5, 6
package_name = 'udev'
when 7
package_name = 'systemd'
end

describe 'running puppet code' do
it 'should work with no errors' do
pp = <<-EOS
Expand All @@ -21,7 +31,7 @@ class { 'udev': udev_log => 'debug' }
end
end

describe package('udev') do
describe package(package_name) do
it { should be_installed }
end

Expand Down

0 comments on commit 4670766

Please sign in to comment.