You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.4 KiB
YAML
76 lines
2.4 KiB
YAML
variant: flatcar
|
|
version: 1.1.0
|
|
passwd:
|
|
users:
|
|
- name: core
|
|
ssh_authorized_keys:
|
|
- ""
|
|
systemd:
|
|
units:
|
|
- name: var-lib-docker-volumes.mount
|
|
enabled: true
|
|
contents: |
|
|
[Mount]
|
|
What=/dev/disk/by-partlabel/appstorage
|
|
Where=/var/lib/docker/volumes
|
|
Type=ext4
|
|
|
|
[Install]
|
|
RequiredBy=local-fs.target
|
|
- name: app.service
|
|
enabled: true
|
|
contents_local: app/app.service
|
|
### docker-compose sysext
|
|
### https://flatcar.github.io/sysext-bakery/docker_compose/
|
|
- name: systemd-sysupdate.timer
|
|
enabled: true
|
|
- name: docker.service
|
|
dropins:
|
|
- name: 10-wait-docker.conf
|
|
contents: |
|
|
[Unit]
|
|
After=var-lib-docker-volumes.mount
|
|
Requires=var-lib-docker-volumes.mount
|
|
- name: systemd-sysupdate.service
|
|
dropins:
|
|
- name: docker-compose.conf
|
|
contents: |
|
|
[Service]
|
|
ExecStartPre=/usr/bin/sh -c "readlink --canonicalize /etc/extensions/docker-compose.raw > /tmp/docker-compose"
|
|
ExecStartPre=/usr/lib/systemd/systemd-sysupdate -C docker-compose update
|
|
ExecStartPost=/usr/bin/sh -c "readlink --canonicalize /etc/extensions/docker-compose.raw > /tmp/docker-compose-new"
|
|
ExecStartPost=/usr/bin/sh -c "if ! cmp --silent /tmp/docker-compose /tmp/docker-compose-new; then touch /run/reboot-required; fi"
|
|
|
|
# device: /dev/disk/by-label/appstorage
|
|
storage:
|
|
disks:
|
|
- device: /dev/sda
|
|
wipe_table: false
|
|
partitions:
|
|
- label: appstorage
|
|
number: 1
|
|
filesystems:
|
|
- device: /dev/disk/by-partlabel/appstorage
|
|
format: ext4
|
|
wipe_filesystem: false
|
|
trees:
|
|
- path: /app
|
|
local: app
|
|
files:
|
|
### docker-compose sysext
|
|
### https://flatcar.github.io/sysext-bakery/docker_compose/
|
|
- path: /opt/extensions/docker-compose/docker-compose-2.34.0-x86-64.raw
|
|
mode: 0644
|
|
contents:
|
|
source: https://extensions.flatcar.org/extensions/docker-compose-2.34.0-x86-64.raw
|
|
- path: /etc/sysupdate.docker-compose.d/docker-compose.conf
|
|
contents:
|
|
source: https://extensions.flatcar.org/extensions/docker-compose.conf
|
|
- path: /etc/sysupdate.d/noop.conf
|
|
contents:
|
|
source: https://extensions.flatcar.org/extensions/noop.conf
|
|
links:
|
|
- target: /opt/extensions/docker-compose/docker-compose-2.34.0-x86-64.raw
|
|
path: /etc/extensions/docker-compose.raw
|
|
hard: false
|