1
0
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:
2016-12-22 16:30:30 -05:00
parent 341b0cecee
commit 2abd0ae6c4

View File

@@ -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',
} }