Files
pkg/bootstrapconfig/config.go

82 lines
1.6 KiB
Go
Raw Normal View History

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
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
}
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 {
DSA string `yaml:",omitempty"`
RSA string `yaml:",omitempty"`
ECDSA string `yaml:",omitempty"`
ED25519 string `yaml:",omitempty"`
2023-02-01 23:13:59 +01:00
}
} `yaml:",omitempty"`
2023-02-01 23:13:59 +01:00
PreLVMCrypt []CryptDev `yaml:"pre_lvm_crypt"`
LVM []LvmVG
Crypt []CryptDev
Bootstrap *Bootstrap `yaml:",omitempty"`
2022-03-28 18:36:44 +02:00
}
type Auth struct {
Name string
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
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 {
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 {
Mirrors int `yaml:",omitempty"`
Stripes int `yaml:",omitempty"`
2022-03-28 18:36:44 +02:00
}
type Bootstrap struct {
Dev string `yaml:",omitempty"`
Seed string `yaml:",omitempty"`
2022-03-28 18:36:44 +02:00
}