Adding usage of debian stretch backports and latest icinga version to puppet modul

Topic: adding usage of debian stretch backports and latest icinga version to puppet modul

Based on the icinga2 puppet modul v 2.0.0 (can be found on: https://github.com/Icinga/puppet-icinga2 )

And the upgrade to icinga2 version 2.11 article (can be found: https://icinga.com/docs/icinga2/latest/doc/16-upgrading-icinga-2/#upgrading-to-v211 )

Goal: enabling puppet to use the icinga2 version 2.11

What I have:
Code fragment to enable the debian backports:

DIST=$(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release); \
 echo "deb https://deb.debian.org/debian ${DIST}-backports main" > \
 /etc/apt/sources.list.d/${DIST}-backports.list

Code fragment to install the latest Icinga2 version:

curl -fsSL https://packages.icinga.com/icinga.key | apt-key add -
apt-get update && apt-get upgrade
apt-get install software-properties-common
add-apt-repository "deb https://packages.icinga.com/debian icinga-$(lsb_release -cs) main"

Question: how can I make usage of the stretch backports within the puppet modul – in case you already did this?

Or at least - in case you don’t know the puppet modul in detail – within a fresh plain puppet modul?