Skip to content

Commit

Permalink
Merge pull request #648 from emetriq/master
Browse files Browse the repository at this point in the history
zabbix.com repository for Raspbian Linux
  • Loading branch information
bastelfreak authored Feb 1, 2020
2 parents c1187eb + e32749f commit 0247089
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@
,
}
} else {
$operatingsystem = downcase($facts['os']['name'])
if ($facts['os']['distro'][id] == 'Raspbian') {
$operatingsystem = 'raspbian'
} else {
$operatingsystem = downcase($facts['os']['name'])
}
case $facts['os']['release']['full'] {
/\/sid$/ : { $releasename = regsubst($facts['os']['release']['full'], '/sid$', '') }
default : { $releasename = $facts['os']['distro']['codename'] }
Expand Down
7 changes: 7 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@
},
{
"operatingsystem": "Gentoo"
},
{
"operatingsystem": "Raspbian",
"operatingsystemrelease": [
"9",
"10"
]
}
]
}

0 comments on commit 0247089

Please sign in to comment.