sealgit.yaml - selfhost - Incus configurations for my self-hosted setup.
 (HTM) git clone git://jay.scot/selfhost
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       sealgit.yaml (807B)
       ---
            1 devices:
            2   repos:
            3     path: /srv/git
            4     source: /srv/services/git
            5     type: disk
            6 
            7   static:
            8     path: /srv/www
            9     source: /srv/services/static/git
           10     type: disk
           11     shift: true
           12 
           13 config:
           14   cloud-init.network-config: |
           15     version: 2
           16     ethernets:
           17       eth0:
           18         addresses:
           19           - 192.168.2.13/24
           20         gateway4: 192.168.2.1
           21   cloud-init.user-data: |
           22     #cloud-config
           23     package_upgrade: true
           24     hostname: sealgit.jay.scot
           25     timezone: Europe/London
           26     manage_resolv_conf: true
           27     resolv_conf:
           28       nameservers: ['192.168.2.10', '1.1.1.1']
           29     write_files:
           30       - path: /etc/periodic/hourly/sealgit.sh
           31         permissions: '0755'
           32         content: |
           33           #!/bin/sh
           34 
           35           reposdir="/srv/git"
           36           wwwdir="/srv/www"
           37 
           38           sealgit -g -p $reposdir -o "$wwwdir" -i .ssh
           39