bundles/ntfy: first draft
This commit is contained in:
parent
deba777a80
commit
a8cf858d44
7 changed files with 338 additions and 5 deletions
43
bundles/ntfy/items.py
Normal file
43
bundles/ntfy/items.py
Normal 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',
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue