2022-03-28 18:36:44 +02:00
|
|
|
package bootstrapconfig
|
|
|
|
|
|
|
|
type Config struct {
|
2022-03-30 14:36:44 +02:00
|
|
|
AntiPhishingCode string `yaml:"anti_phishing_code"`
|
2022-03-28 18:36:44 +02:00
|
|
|
|
2025-07-06 11:23:53 +02:00
|
|
|
Keymap string `yaml:",omitempty"`
|
|
|
|
Modules string `yaml:",omitempty"`
|
2022-03-28 18:36:44 +02:00
|
|
|
|
|
|
|
Auths []Auth
|
|
|
|
|
|
|
|
Networks []struct {
|
|
|
|
Name string
|
|
|
|
Interfaces []struct {
|
|
|
|
Var string
|
|
|
|
N int
|
|
|
|
Regexps []string
|
|
|
|
}
|
|
|
|
Script string
|
|
|
|
}
|
|
|
|
|
2025-07-06 11:23:53 +02:00
|
|
|
SignerPublicKey string `yaml:"signer_public_key,omitempty"`
|
|
|
|
|
|
|
|
SSH *struct {
|
|
|
|
Listen string `yaml:",omitempty"`
|
|
|
|
UserCA string `yaml:"user_ca,omitempty"`
|
2023-02-01 23:13:59 +01:00
|
|
|
Keys struct {
|
2025-07-06 11:23:53 +02:00
|
|
|
DSA string `yaml:",omitempty"`
|
|
|
|
RSA string `yaml:",omitempty"`
|
|
|
|
ECDSA string `yaml:",omitempty"`
|
|
|
|
ED25519 string `yaml:",omitempty"`
|
2023-02-01 23:13:59 +01:00
|
|
|
}
|
2025-07-06 11:23:53 +02:00
|
|
|
} `yaml:",omitempty"`
|
2023-02-01 23:13:59 +01:00
|
|
|
|
2023-12-17 13:14:09 +01:00
|
|
|
PreLVMCrypt []CryptDev `yaml:"pre_lvm_crypt"`
|
|
|
|
LVM []LvmVG
|
|
|
|
Crypt []CryptDev
|
2025-07-06 11:23:53 +02:00
|
|
|
Bootstrap *Bootstrap `yaml:",omitempty"`
|
2022-03-28 18:36:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type Auth struct {
|
|
|
|
Name string
|
2025-07-06 11:23:53 +02:00
|
|
|
SSHKey string `yaml:"sshKey,omitempty"`
|
|
|
|
Password string `yaml:"password,omitempty"`
|
2022-03-28 18:36:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type LvmVG struct {
|
|
|
|
VG string
|
|
|
|
PVs struct {
|
|
|
|
N int
|
|
|
|
Regexps []string
|
|
|
|
}
|
|
|
|
|
|
|
|
Defaults struct {
|
|
|
|
FS string
|
|
|
|
Raid *RaidConfig
|
|
|
|
}
|
|
|
|
|
|
|
|
LVs []struct {
|
|
|
|
Name string
|
2025-07-06 11:23:53 +02:00
|
|
|
FS string `yaml:",omitempty"`
|
|
|
|
Raid *RaidConfig `yaml:",omitempty"`
|
|
|
|
Size string `yaml:",omitempty"`
|
|
|
|
Extents string `yaml:",omitempty"`
|
2022-03-28 18:36:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-01 23:13:59 +01:00
|
|
|
type CryptDev struct {
|
2025-07-06 11:23:53 +02:00
|
|
|
Dev string `yaml:",omitempty"`
|
|
|
|
Prefix string `yaml:",omitempty"`
|
2023-02-01 23:13:59 +01:00
|
|
|
Name string
|
|
|
|
}
|
|
|
|
|
2022-03-28 18:36:44 +02:00
|
|
|
type RaidConfig struct {
|
2025-07-06 11:23:53 +02:00
|
|
|
Mirrors int `yaml:",omitempty"`
|
|
|
|
Stripes int `yaml:",omitempty"`
|
2022-03-28 18:36:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type Bootstrap struct {
|
2025-07-06 11:23:53 +02:00
|
|
|
Dev string `yaml:",omitempty"`
|
|
|
|
Seed string `yaml:",omitempty"`
|
2022-03-28 18:36:44 +02:00
|
|
|
}
|