diff options
Diffstat (limited to 'bundles/git/items.py')
| -rw-r--r-- | bundles/git/items.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/bundles/git/items.py b/bundles/git/items.py new file mode 100644 index 0000000..22948ae --- /dev/null +++ b/bundles/git/items.py @@ -0,0 +1,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", + }, + }, +} |