Created
January 12, 2025 13:53
-
-
Save JerryPreissler/7bb129e490625ac7c7eff9c517bf18ce to your computer and use it in GitHub Desktop.
Sample Butane config for Flatcar Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variant: flatcar | |
version: 1.0.0 | |
passwd: | |
users: | |
- name: core | |
ssh_authorized_keys: | |
- "<ssh public key>" | |
storage: | |
disks: | |
- device: /dev/sdb | |
wipe_table: true | |
partitions: | |
- label: DOCKER | |
number: 1 | |
- device: /dev/sdc | |
wipe_table: true | |
partitions: | |
- label: STORAGE | |
number: 1 | |
filesystems: | |
- path: /var/lib/docker | |
device: /dev/disk/by-partlabel/DOCKER | |
format: ext4 | |
- path: /var/storage | |
device: /dev/disk/by-partlabel/STORAGE | |
format: ext4 | |
files: | |
- path: /etc/systemd/network/00-eth0.network | |
contents: | |
inline: | | |
[Match] | |
Name=eth0 | |
[Network] | |
DNS=192.168.1.1 | |
Address=192.168.1.201/24 | |
Gateway=192.168.1.1 | |
systemd: | |
units: | |
- name: var-lib-docker.mount | |
enabled: true | |
contents: | | |
[Unit] | |
Description=Mount /var/lib/docker | |
After=local-fs.target | |
[Mount] | |
What=/dev/disk/by-partlabel/DOCKER | |
Where=/var/lib/docker | |
Type=ext4 | |
[Install] | |
WantedBy=multi-user.target | |
- name: var-storage.mount | |
enabled: true | |
contents: | | |
[Unit] | |
Description=Mount /var/storage | |
After=local-fs.target | |
[Mount] | |
What=/dev/disk/by-partlabel/STORAGE | |
Where=/var/storage | |
Type=ext4 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment