Skip to content

Commit

Permalink
additional puppet 4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Jun 7, 2015
1 parent 4670766 commit 42e0b46
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
}
} else {
case $::operatingsystemmajrelease {
'5': {
5: {
$udev_package = 'udev'
$udevtrigger = 'udevtrigger'
$udevlogpriority = 'udevcontrol log_priority'
}
'6': {
6: {
$udev_package = 'udev'
$udevtrigger = 'udevadm trigger'
$udevlogpriority = 'udevadm control --log-priority'
}
'7': {
7: {
$udev_package = 'systemd'
$udevtrigger = 'udevadm trigger'
$udevlogpriority = 'udevadm control --log-priority'
Expand Down
2 changes: 1 addition & 1 deletion manifests/udevadm/trigger.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@

exec { $udev::params::udevtrigger:
refreshonly => true,
path => [$udev::params::udevadm_path],
path => $udev::params::udevadm_path,
}
}
4 changes: 2 additions & 2 deletions spec/classes/params_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => '6',
:operatingsystemmajrelease => 6,
}
end

Expand All @@ -17,7 +17,7 @@
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => '4',
:operatingsystemmajrelease => 4,
}
end

Expand Down
2 changes: 1 addition & 1 deletion spec/classes/udev_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => '6',
:operatingsystemmajrelease => 6,
}
end

Expand Down
4 changes: 2 additions & 2 deletions spec/classes/udevadm/logpriority_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
describe 'for osfamily RedHat and operatingsystemmajrelease 6' do
let(:facts) do
{ :osfamily => 'RedHat',
:operatingsystemmajrelease => '6',
:operatingsystemmajrelease => 6,
}
end

Expand Down Expand Up @@ -66,7 +66,7 @@
describe 'for osfamily RedHat and operatingsystemmajrelease 5' do
let(:facts) do
{ :osfamily => 'RedHat',
:operatingsystemmajrelease => '5',
:operatingsystemmajrelease => 5,
}
end

Expand Down
4 changes: 2 additions & 2 deletions spec/classes/udevadm/trigger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
describe 'for osfamily RedHat' do
let(:facts) do
{ :osfamily => 'RedHat',
:operatingsystemmajrelease => '6',
:operatingsystemmajrelease => 6,
}
end

Expand All @@ -21,7 +21,7 @@
describe 'for osfamily RedHat' do
let(:facts) do
{ :osfamily => 'RedHat',
:operatingsystemmajrelease => '5',
:operatingsystemmajrelease => 5,
}
end

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/rule_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
let :facts do
{
:osfamily => 'RedHat',
:operatingsystemmajrelease => '6',
:operatingsystemmajrelease => 6,
}
end

Expand Down

0 comments on commit 42e0b46

Please sign in to comment.