Skip to content

Commit

Permalink
bw: add node file for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Apr 3, 2024
1 parent 0ca456a commit f4f3843
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions bundlewrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ basic information about your event:

```toml
subgroups = ["saal1", "saal2"]
members = ["releasing"]

[metadata.event]
timezone = "Europe/Berlin"
Expand Down
20 changes: 20 additions & 0 deletions bundlewrap/bundles/releasing_specials/items.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# TODO remove this once releasing is managed using bundlewrap.
# Use the regular `encoder-common` bundles after that

event = node.metadata.get('event/slug')

directories[f'/video/encoded/{event}'] = {
'group': 'voc',
'mode': '0775',
'owner': 'upload'
}

actions = {
'systemd-reload': {
'command': 'systemctl daemon-reload',
'triggered': True,
'before': {
'svc_systemd:',
},
},
}
10 changes: 10 additions & 0 deletions bundlewrap/bundles/releasing_specials/metadata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
defaults = {
'event': {
'slug': 'XYZ',
},
'mqtt-monitoring': {
'plugins_daily': {
'disk_space_usage',
},
},
}
8 changes: 8 additions & 0 deletions bundlewrap/nodes/releasing.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bundles = [
"mqtt-monitoring",
"releasing_specials",
"systemd-timers",
]

[metadata]
hostname = "releasing.c3voc.de"

0 comments on commit f4f3843

Please sign in to comment.