Skip to content

Commit

Permalink
Use operating system fact, don't depend on LSB
Browse files Browse the repository at this point in the history
This could resolve torrancew#51
  • Loading branch information
cryptomeme authored May 8, 2017
1 parent 47733ae commit 5e5595e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$package_ensure = 'installed'
) {
$package_name = $::operatingsystem ? {
/(RedHat|CentOS|Amazon|OracleLinux)/ => $::lsbmajdistrelease ? {
/(RedHat|CentOS|Amazon|OracleLinux)/ => $::operatingsystemmajrelease ? {
5 => 'vixie-cron',
default => 'cronie',
},
Expand Down

0 comments on commit 5e5595e

Please sign in to comment.