first running hass stuff

This commit is contained in:
Sophie Schiller 2022-12-22 18:59:27 +01:00
parent 107fd6872b
commit edeffee5c2
3 changed files with 28 additions and 16 deletions

View file

@ -1,3 +1,5 @@
from bundlewrap.metadata import atomic
defaults = {
'apt': {
'packages': {
@ -62,3 +64,15 @@ def nginx(metadata):
},
},
}
@metadata_reactor.provides(
'firewall/port_rules/8123',
)
def firewall(metadata):
return {
'firewall': {
'port_rules': {
'8123': atomic(metadata.get('nginx/restrict-to', {'*'})),
},
},
}