From 36bfae8f6b90c962a895abeb33978e5055c1b578 Mon Sep 17 00:00:00 2001 From: Christian Kelinski Date: Fri, 10 Jan 2020 13:39:54 +0100 Subject: [PATCH 1/2] Zabbix.com provides a repository for Raspbian Linux under http://repo.zabbix.com/zabbix//raspbian/ The puppet-zabbix module uses the fact os.name for determining the URL of the used repository which is "Debian" for Raspbian Linux. The Debian repositiry is not providing "armhf" deb packages so the installation of zabbix fails. This patch is an if condition which sets the variable $operatingsystem to 'raspbian' if the fact os.distro.id is 'Raspbian'. Otherwise the behaviour is not modified. --- manifests/repo.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/repo.pp b/manifests/repo.pp index 33f89fdad..2dfed05dd 100644 --- a/manifests/repo.pp +++ b/manifests/repo.pp @@ -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'] } From e32749f26e5d293f8f2320ac5c72b47df05d1113 Mon Sep 17 00:00:00 2001 From: Christian Kelinski Date: Thu, 16 Jan 2020 09:09:03 +0100 Subject: [PATCH 2/2] Added Raspbian Stretch and Buster to metadata.json --- metadata.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/metadata.json b/metadata.json index 9f6cd88b5..946062379 100644 --- a/metadata.json +++ b/metadata.json @@ -144,6 +144,13 @@ }, { "operatingsystem": "Gentoo" + }, + { + "operatingsystem": "Raspbian", + "operatingsystemrelease": [ + "9", + "10" + ] } ] }