Compare commits

...

6 Commits

2 changed files with 19 additions and 1 deletions

View File

@ -64,6 +64,8 @@ type Config struct {
Storage StorageConfig
Mounts []MountDef
Groups []GroupDef
Users []UserDef
@ -94,6 +96,12 @@ type VolumeDef struct {
}
}
type MountDef struct {
Dev string
Path string
Options string
}
type GroupDef struct {
Name string
Gid int

View File

@ -8,6 +8,12 @@ import (
type Host struct {
Name string
ClusterName string
Labels map[string]string
Annotations map[string]string
MACs []string
IPs []string
@ -17,6 +23,7 @@ type Host struct {
Initrd string
Versions map[string]string
BootstrapConfig string
Config string
}
@ -26,5 +33,8 @@ func (h *Host) WriteHashDataTo(w io.Writer) error {
Initrd: h.Initrd,
Versions: h.Versions,
Config: h.Config,
Labels: map[string]string{},
Annotations: map[string]string{},
})
}