bootv2: bootstrap, vpn

This commit is contained in:
Mikaël Cluseau
2022-04-04 10:29:28 +02:00
parent 8506f8807d
commit 3c7d56ae48
17 changed files with 296 additions and 258 deletions

View File

@ -1,26 +1,7 @@
package main
import (
nconfig "novit.nc/direktil/pkg/config"
nconfig "novit.tech/direktil/pkg/config"
)
type configV1 struct {
Layers []string `yaml:"layers"`
Files []nconfig.FileDef `yaml:"files"`
// v2 handles more
RootUser struct {
PasswordHash string `yaml:"password_hash"`
AuthorizedKeys []string `yaml:"authorized_keys"`
} `yaml:"root_user"`
Mounts []MountDef `yaml:"mounts"`
}
type MountDef struct {
Dev string
Path string
Options string
Type string
}
type configV1 = nconfig.Config