from bundlewrap.metadata import atomic defaults = { 'apt': { 'repos': { 'deb-multimedia': { 'items': { 'deb https://ftp-stud.hs-esslingen.de/pub/Mirrors/debian-multimedia/ {os_release} main', 'deb https://ftp-stud.hs-esslingen.de/pub/Mirrors/debian-multimedia/ {os_release}-backports main', }, }, }, 'packages': { 'cec-utils': {}, 'fonts-noto': {}, 'fonts-roboto': {}, 'kodi': {}, 'kodi-inputstream-adaptive': {}, 'libasound2': {}, 'libcec4': {}, 'ttf-mscorefonts-installer': {}, 'tv-fonts': {}, 'xfonts-base': {}, 'xinit': {}, 'xserver-xorg': {}, 'xserver-xorg-legacy': {}, }, }, 'backups': { 'paths': { '/home/kodi', }, }, 'users': { 'kodi': { 'groups': { 'audio', 'tty', 'video', }, }, }, } @metadata_reactor.provides( 'iptables/port_rules/8080', ) def iptables(metadata): return { 'iptables': { 'port_rules': { '8080': atomic(metadata.get('kodi/restrict-to', set('*'))), }, }, }