Compare commits

..

6 Commits

Author SHA1 Message Date
Mikaël Cluseau
c0e8dcee6f localconfig: bootstrap config 2022-03-28 11:21:27 +02:00
Mikaël Cluseau
fd3ce3a149 config: add mounts for boot v2 2022-02-21 18:15:42 +01:00
Mikaël Cluseau
9893221392 config: add mounts for boot v2 2022-02-21 18:13:54 +01:00
Mikaël Cluseau
96b0448b84 localhost: add cluster name to host 2019-12-11 17:19:50 +01:00
Mikaël Cluseau
9b2e3dd362 localconfig: add labels and annotations to host 2019-12-11 14:57:49 +01:00
Mikaël Cluseau
bf811616d2 localconfig: add labels to host 2019-12-11 13:08:16 +01:00
2 changed files with 19 additions and 1 deletions

View File

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

View File

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