home_server/server-0.bu

57 lines
1.6 KiB
Plaintext
Raw Normal View History

2023-06-02 23:19:26 +00:00
variant: fcos
version: 1.4.0
passwd:
users:
2023-06-02 23:34:31 +00:00
- name: core
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDR7q2FfdizNkvel66N/jHcwlEA8R5JEOneKXshMWqkX jeff@station-1
2023-06-03 23:04:25 +00:00
systemd:
units:
- name: adguardhome.service
enabled: true
contents: |
[Unit]
Description=AdGuardHome
After=network-online.target
Wants=network-online.target
[Service]
TimeoutStartSec=0
ExecStartPre=-/bin/podman kill adguardhome
ExecStartPre=-/bin/podman rm adguardhome
ExecStartPre=/bin/podman pull adguard/adguardhome
ExecStart=docker run \
--name adguardhome \
--restart unless-stopped \
-v /my/own/workdir:/opt/adguardhome/work \
-v /my/own/confdir:/opt/adguardhome/conf \
-p 53:53/tcp -p 53:53/udp \
-p 67:67/udp -p 68:68/udp \
-p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp \
-p 853:853/tcp \
-p 784:784/udp -p 853:853/udp -p 8853:8853/udp \
-p 5443:5443/tcp -p 5443:5443/udp \
-d adguard/adguardhome
[Install]
WantedBy=multi-user.targetstorage:
2023-06-02 23:19:26 +00:00
files:
2023-06-02 23:34:31 +00:00
- path: /etc/hostname
mode: 0644
contents:
inline: server-0
2023-06-03 23:04:25 +00:00
luks:
- name: data
device: /dev/vdb
filesystems:
- path: /var/lib/data
device: /dev/mapper/data
format: btrfs
label: DATA
with_mount_unit: true
- path: /var/lib/data
device: /dev/disk/by-id/coreos-boot-disk
format: ext4
label: BOOT
with_mount_unit: true