2022-03-28 16:36:44 +00:00
|
|
|
package bootstrapconfig
|
|
|
|
|
|
|
|
type Config struct {
|
2022-03-30 12:36:44 +00:00
|
|
|
AntiPhishingCode string `yaml:"anti_phishing_code"`
|
2022-03-28 16:36:44 +00:00
|
|
|
|
|
|
|
Keymap string
|
|
|
|
Modules string
|
|
|
|
|
|
|
|
Auths []Auth
|
|
|
|
|
|
|
|
Networks []struct {
|
|
|
|
Name string
|
|
|
|
Interfaces []struct {
|
|
|
|
Var string
|
|
|
|
N int
|
|
|
|
Regexps []string
|
|
|
|
}
|
|
|
|
Script string
|
|
|
|
}
|
|
|
|
|
2023-02-01 22:13:59 +00:00
|
|
|
SSH struct {
|
|
|
|
Listen string
|
|
|
|
Keys struct {
|
|
|
|
DSA string
|
|
|
|
RSA string
|
|
|
|
ECDSA string
|
|
|
|
ED25519 string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LVM []LvmVG
|
|
|
|
|
|
|
|
Crypt []CryptDev
|
|
|
|
|
2022-03-28 16:36:44 +00:00
|
|
|
Bootstrap Bootstrap
|
|
|
|
}
|
|
|
|
|
|
|
|
type Auth struct {
|
|
|
|
Name string
|
|
|
|
SSHKey string `yaml:"sshKey"`
|
|
|
|
Password string `yaml:"password"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type LvmVG struct {
|
|
|
|
VG string
|
|
|
|
PVs struct {
|
|
|
|
N int
|
|
|
|
Regexps []string
|
|
|
|
}
|
|
|
|
|
|
|
|
Defaults struct {
|
|
|
|
FS string
|
|
|
|
Raid *RaidConfig
|
|
|
|
}
|
|
|
|
|
|
|
|
LVs []struct {
|
|
|
|
Name string
|
|
|
|
FS string
|
|
|
|
Raid *RaidConfig
|
|
|
|
Size string
|
|
|
|
Extents string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-01 22:13:59 +00:00
|
|
|
type CryptDev struct {
|
|
|
|
Dev string
|
|
|
|
Prefix string
|
|
|
|
Name string
|
|
|
|
}
|
|
|
|
|
2022-03-28 16:36:44 +00:00
|
|
|
type RaidConfig struct {
|
|
|
|
Mirrors int
|
|
|
|
Stripes int
|
|
|
|
}
|
|
|
|
|
|
|
|
type Bootstrap struct {
|
|
|
|
Dev string
|
|
|
|
Seed string
|
|
|
|
}
|