2022-02-04 18:59:42 +00:00
|
|
|
|
---
|
|
|
|
|
# early system configuration
|
2022-03-08 10:45:56 +00:00
|
|
|
|
anti_phishing_code: "direktil<3"
|
2022-02-04 18:59:42 +00:00
|
|
|
|
|
|
|
|
|
modules: /modules.sqfs
|
|
|
|
|
|
2022-03-08 10:45:56 +00:00
|
|
|
|
auths:
|
|
|
|
|
- name: novit
|
|
|
|
|
sshKey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICkpbU6sf4t0f6XAv9DuW3XH5iLM0AI5rc8PT2jwea1N
|
|
|
|
|
password: bXlzZWVk:HMSxrg1cYphaPuUYUbtbl/htep/tVYYIQAuvkNMVpw0 # mypass
|
|
|
|
|
|
2022-02-04 18:59:42 +00:00
|
|
|
|
networks:
|
2022-03-08 10:45:56 +00:00
|
|
|
|
- name: loopback
|
|
|
|
|
interfaces: [ { var: iface, n: 1, regexps: [ "^lo$" ] } ]
|
|
|
|
|
script: |
|
|
|
|
|
ip a add 127.0.0.1/8 dev lo
|
|
|
|
|
ip a add ::1/128 dev lo
|
|
|
|
|
ip li set lo up
|
2022-02-04 18:59:42 +00:00
|
|
|
|
- name: main
|
2022-03-08 10:45:56 +00:00
|
|
|
|
interfaces:
|
2022-02-04 18:59:42 +00:00
|
|
|
|
- var: iface
|
|
|
|
|
n: 1
|
|
|
|
|
regexps:
|
|
|
|
|
- eth.*
|
|
|
|
|
- veth.*
|
|
|
|
|
- eno.*
|
|
|
|
|
- enp.*
|
|
|
|
|
script: |
|
2023-02-01 23:28:36 +00:00
|
|
|
|
ip a add 2001:41d0:306:168f::1337:2eed/64 dev $iface
|
2022-02-04 18:59:42 +00:00
|
|
|
|
ip li set $iface up
|
2023-02-01 23:28:36 +00:00
|
|
|
|
#udhcpc $iface
|
2022-02-04 18:59:42 +00:00
|
|
|
|
|
|
|
|
|
lvm:
|
2022-03-08 10:45:56 +00:00
|
|
|
|
- vg: storage
|
2022-02-04 18:59:42 +00:00
|
|
|
|
pvs:
|
2022-03-08 10:45:56 +00:00
|
|
|
|
n: 2
|
2022-02-04 18:59:42 +00:00
|
|
|
|
regexps:
|
2022-03-08 10:45:56 +00:00
|
|
|
|
# to match full disks
|
|
|
|
|
- /dev/nvme[0-9]+n[0-9]+
|
|
|
|
|
- /dev/vd[a-z]+
|
|
|
|
|
- /dev/sd[a-z]+
|
|
|
|
|
- /dev/hd[a-z]+
|
|
|
|
|
# to match partitions:
|
|
|
|
|
#- /dev/nvme[0-9]+n[0-9]+p[0-9]+
|
|
|
|
|
#- /dev/vd[a-z]+[0-9]+
|
|
|
|
|
#- /dev/sd[a-z]+[0-9]+
|
|
|
|
|
#- /dev/hd[a-z]+[0-9]+
|
2022-02-04 18:59:42 +00:00
|
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
|
fs: ext4
|
2022-03-08 10:45:56 +00:00
|
|
|
|
raid:
|
|
|
|
|
mirrors: 1
|
2022-02-04 18:59:42 +00:00
|
|
|
|
|
|
|
|
|
lvs:
|
|
|
|
|
- name: bootstrap
|
|
|
|
|
size: 2g
|
|
|
|
|
|
2022-03-08 10:45:56 +00:00
|
|
|
|
- name: varlog
|
|
|
|
|
extents: 10%FREE
|
2023-02-01 23:28:36 +00:00
|
|
|
|
# size: 10g
|
|
|
|
|
|
|
|
|
|
- name: podman
|
|
|
|
|
extents: 10%FREE
|
|
|
|
|
# size: 10g
|
2022-03-08 10:45:56 +00:00
|
|
|
|
|
2022-02-04 18:59:42 +00:00
|
|
|
|
- name: dls
|
2022-03-08 10:45:56 +00:00
|
|
|
|
extents: 100%FREE
|
2023-02-01 23:28:36 +00:00
|
|
|
|
# size: 10g
|
|
|
|
|
|
|
|
|
|
crypt:
|
|
|
|
|
- dev: /dev/storage/bootstrap
|
|
|
|
|
- dev: /dev/storage/dls
|
2022-03-08 10:45:56 +00:00
|
|
|
|
|
|
|
|
|
bootstrap:
|
|
|
|
|
dev: /dev/mapper/bootstrap
|
2023-02-01 23:28:36 +00:00
|
|
|
|
# TODO seed: https://direktil.novit.io/bootstraps/dls-crypt
|
|
|
|
|
seed: http://192.168.10.254:7606/hosts/m1/bootstrap.tar
|
|
|
|
|
# TODO seed_sign_key: "..."
|
|
|
|
|
# TODO load_and_close: true
|
2022-02-04 18:59:42 +00:00
|
|
|
|
|