Skip to content

Commit

Permalink
fixed package name on Ubuntu 14.10
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheliniy authored and jonnytdevops committed Jan 22, 2015
1 parent c6f061a commit a3aaeb9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@
$package_name = 'iptables-persistent'
}
}
'Ubuntu' : {
if $::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '14.10') >= 0 {
$service_name = 'netfilter-persistent'
$package_name = 'netfilter-persistent'
} else {
$service_name = 'iptables-persistent'
$package_name = 'iptables-persistent'
}
}
default: {
$package_name = undef
$service_name = 'iptables'
Expand Down

0 comments on commit a3aaeb9

Please sign in to comment.