about summary refs log tree commit diff
path: root/bundles/git/items.py
blob: 22948ae5f3db0ffc7cc76407683fc113076e8656 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
if node.os != "alpine":
    raise BundleError(f"{node.name}: OS {node.os} is not supported.")

svc_openrc = {
    "fcgiwrap": {
        "enabled": True,
        "running": True,
        "runlevel": "default",
        "needs": [
            "pkg_apk:fcgiwrap",
        ],
    },
}

directories = {
    # this is where we store repos
    "/var/lib/git": {
        "mode": "0775",
        "group": "wheel",
        "owner": "robert",
    },
    # this is the webroot
    "/var/www/cgit": {
        "mode": "0775",
        "group": "www-data",
        "owner": "webdeploy",
    },
}

files = {
    "/var/www/cgit/Caddyfile": {},
    "/var/www/cgit/custom.css": {},
    "/etc/cgitrc": {},

    "/etc/s6-rc/cgit.conf": {
        "content_type": "mako",
    },

    # TODO: run behind go-away and expose?
    "/etc/traefik/cgit.yaml": {
        "content_type": "mako",
        "source": "traefik.yaml",
        "needs": {
            "bundle:traefik",
        },
    },
}