about summary refs log tree commit diff
path: root/bundles/jellyfin/items.py
blob: f6122612f26c1012f8c7902eebc64a86a2ac6dc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
files = {
    "/var/lib/jellyfin/plugins/SSO-Auth.zip": {
        "content_type": "download",
        "source": "https://github.com/9p4/jellyfin-plugin-sso/releases/download/v3.5.2.4/sso-authentication_3.5.2.4.zip",
        "content_hash": "a2f00e5acc7adf785202e27fffc969e019cbd9e8",
        "triggers": {"action:extract-jellyfin-plugin-sso"},
    },
    "/var/lib/jellyfin/config/branding.xml": {
        "content_type": "text",
        "triggers": {"svc_s6rc:jellyfin:restart"},
    },
    "/var/lib/jellyfin/config/logging.json": {
        "content_type": "mako",
        "triggers": {"svc_s6rc:jellyfin:restart"},
    },
    "/var/lib/jellyfin/plugins/configurations/SSO-Auth.xml": {
        "content_type": "mako",
        "triggers": {"svc_s6rc:jellyfin:restart"},
    },

    "/etc/deployments/jellyfin/kube.yaml": {
        "content_type": "mako",
        "context": node.metadata.get("containers")["jellyfin"],
        "triggers": {"svc_s6rc:jellyfin:restart"},
    },
}

actions = {
    "extract-jellyfin-plugin-sso": {
        "command": "unzip -d /var/lib/jellyfin/plugins/SSO-Auth /var/lib/jellyfin/plugins/SSO-Auth.zip",
        "triggered": True,
    },
}