mirror of
https://github.com/ardichoke/puppet-arpwatch.git
synced 2026-05-11 02:15:37 -04:00
Use operatingsystemmajrelease, os_maj_release is not universal
This commit is contained in:
@@ -8,7 +8,7 @@ class arpwatch::params {
|
|||||||
$interface = 'eth0'
|
$interface = 'eth0'
|
||||||
$config_file = '/etc/sysconfig/arpwatch'
|
$config_file = '/etc/sysconfig/arpwatch'
|
||||||
$config_template = 'arpwatch/conf.rhel.erb'
|
$config_template = 'arpwatch/conf.rhel.erb'
|
||||||
$service_user = $::os_maj_version ? {
|
$service_user = $::operatingsystemmajrelease ? {
|
||||||
'5' => 'pcap',
|
'5' => 'pcap',
|
||||||
default => 'arpwatch',
|
default => 'arpwatch',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user