mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 18:19:36 +00:00
39 lines
708 B
YAML
39 lines
708 B
YAML
---
|
|
storage:
|
|
disks:
|
|
- device: /dev/sda
|
|
wipe_table: true
|
|
partitions:
|
|
- label: ROOT
|
|
number: 0
|
|
filesystems:
|
|
- name: rootfs
|
|
mount:
|
|
device: "/dev/sda1"
|
|
format: "ext4"
|
|
create:
|
|
force: true
|
|
options:
|
|
- "-LROOT"
|
|
files:
|
|
- filesystem: rootfs
|
|
path: /home/core/foo
|
|
mode: 0644
|
|
user:
|
|
id: 500
|
|
group:
|
|
id: 500
|
|
contents:
|
|
inline: |
|
|
Example file contents
|
|
|
|
{{ if index . "ssh_authorized_keys" }}
|
|
passwd:
|
|
users:
|
|
- name: core
|
|
ssh_authorized_keys:
|
|
{{ range $element := .ssh_authorized_keys }}
|
|
- {{$element}}
|
|
{{end}}
|
|
{{end}}
|