Skip to content

Commit

Permalink
use os.family fact to detect params
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Nov 8, 2023
1 parent cffa0fc commit fbeb712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit fbeb712

Please sign in to comment.