Skip to content

Commit

Permalink
Merge pull request #867 from gizmo15/master
Browse files Browse the repository at this point in the history
Add support for FreeBSD only for Zabbix Agent
  • Loading branch information
evgeni authored Nov 7, 2023
2 parents b24756a + 52a33b1 commit a453023
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
16 changes: 16 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@
$zabbix_package_provider = undef
$agent_loadmodulepath = '/usr/lib/modules'
}
'FreeBSD': {
$manage_repo = false
$manage_choco = false
$zabbix_package_agent = 'zabbix6-agent'
$agent_configfile_path = '/usr/local/etc/zabbix6/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_agentd'
$agent_include = '/usr/local/etc/zabbix6/zabbix_agentd.d'
$server_zabbix_user = 'zabbix'
$zabbix_package_provider = undef
$agent_loadmodulepath = '/usr/local/lib/zabbix/modules'
}
'Gentoo': {
$server_fpinglocation = '/usr/sbin/fping'
$server_fping6location = '/usr/sbin/fping6'
Expand Down Expand Up @@ -135,6 +150,7 @@

$manage_startup_script = downcase($facts['kernel']) ? {
'windows' => false,
'FreeBSD' => false,
default => true,
}

Expand Down
2 changes: 1 addition & 1 deletion manifests/startup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@
notify => Service[$name],
}
} else {
fail('We currently only support Debian, Redhat, AIX and Windows osfamily as non-systemd')
fail('We currently only support Debian, FreeBSD, Redhat, AIX and Windows osfamily as non-systemd')
}
}
6 changes: 6 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@
"operatingsystemrelease": [
"7"
]
},
{
"operatingsystem": "FreeBSD",
"operatingsystemrelease": [
"13"
]
}
]
}

0 comments on commit a453023

Please sign in to comment.