bundles/ntfy: first draft

This commit is contained in:
Sophie Schiller 2022-10-19 15:24:39 +02:00
parent deba777a80
commit a8cf858d44
7 changed files with 338 additions and 5 deletions

43
bundles/ntfy/items.py Normal file
View file

@ -0,0 +1,43 @@
files = {
'/etc/ntfy/server.yml': {
'content_type': 'mako',
'needs': {
'pkg_apt:ntfy',
},
'triggers': {
'svc_systemd:ntfy:restart',
},
},
}
directories = {
'/opt/ntfy': {},
'/var/lib/ntfy': {
'owner': 'ntfy',
'group': 'ntfy',
},
'/var/cache/ntfy': {
'owner': 'ntfy',
'group': 'ntfy',
},
'/var/opt/ntfy': {
'owner': 'ntfy',
'group': 'ntfy',
},
}
svc_systemd = {
'ntfy': {
'needs': {
'file:/etc/ntfy/server.yml',
'pkg_apt:ntfy',
},
},
}
users = {
'ntfy': {
'home': '/opt/ntfy',
},
}