diff --git a/manifests/params.pp b/manifests/params.pp index c0c9aacb2..a52a7af42 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -1,8 +1,8 @@ # @summary This class manages zabbix server parameters class zabbix::params { # It seems that ubuntu has an different fping path... - case $facts['os']['name'] { - 'Ubuntu', 'Debian' : { + case $facts['os']['family'] { + 'Debian' : { $server_fpinglocation = '/usr/bin/fping' $server_fping6location = '/usr/bin/fping6' $proxy_fpinglocation = '/usr/bin/fping' @@ -52,25 +52,6 @@ $zabbix_package_provider = undef $agent_loadmodulepath = '/usr/lib/modules' } - 'Fedora': { - $server_fpinglocation = '/usr/sbin/fping' - $server_fping6location = '/usr/sbin/fping6' - $proxy_fpinglocation = '/usr/sbin/fping' - $proxy_fping6location = '/usr/sbin/fping6' - $manage_repo = false - $manage_choco = false - $zabbix_package_agent = 'zabbix-agent' - $agent_configfile_path = '/etc/zabbix_agentd.conf' - $agent_config_owner = 'zabbix' - $agent_zabbix_user = 'zabbix' - $agent_config_group = 'zabbix' - $agent_pidfile = '/var/run/zabbix/zabbix_agentd.pid' - $agent_servicename = 'zabbix-agent' - $agent_include = '/etc/zabbix/zabbix_agentd.d' - $server_zabbix_user = 'zabbix' - $zabbix_package_provider = undef - $agent_loadmodulepath = '/usr/lib/modules' - } 'FreeBSD': { $manage_repo = false $manage_choco = false diff --git a/spec/classes/agent_spec.rb b/spec/classes/agent_spec.rb index e440417db..7c981ffd7 100644 --- a/spec/classes/agent_spec.rb +++ b/spec/classes/agent_spec.rb @@ -17,8 +17,6 @@ on_supported_os(baseline_os_hash).each do |os, facts| context "on #{os}" do config_path = case facts[:os]['name'] - when 'Fedora' - '/etc/zabbix_agentd.conf' when 'windows' 'C:/ProgramData/zabbix/zabbix_agentd.conf' else