1
0
mirror of https://github.com/rancher/os.git synced 2025-09-15 22:49:08 +00:00

Add ipxe support

This commit is contained in:
Darren Shepherd
2021-10-13 16:00:29 -07:00
parent b4cc0014b2
commit 0e46d19194
16 changed files with 287 additions and 126 deletions

View File

@@ -1,6 +1,6 @@
package config
type Rancher struct {
type RancherOS struct {
Install Install `json:"install,omitempty"`
}
@@ -15,31 +15,22 @@ type Install struct {
NoFormat bool `json:"noFormat,omitempty"`
Debug bool `json:"debug,omitempty"`
TTY string `json:"tty,omitempty"`
ServerURL string `json:"serverUrl,omitempty"`
Token string `json:"token,omitempty"`
Password string `json:"password,omitempty"`
}
type Config struct {
SSHAuthorizedKeys []string `json:"sshAuthorizedKeys,omitempty"`
Rancher Rancher `json:"rancher,omitempty"`
SSHAuthorizedKeys []string `json:"sshAuthorizedKeys,omitempty"`
RancherOS RancherOS `json:"rancheros,omitempty"`
}
type YipConfig struct {
Stages map[string][]Stage `json:"stages,omitempty"`
Rancherd Rancherd `json:"rancherd,omitempty"`
Stages map[string][]Stage `json:"stages,omitempty"`
}
type Stage struct {
Users map[string]User `json:"users,omitempty"`
}
type Rancherd struct {
Server string `json:"server,omitempty"`
Role string `json:"role,omitempty"`
Token string `json:"token,omitempty"`
}
type User struct {
Name string `json:"name,omitempty"`
PasswordHash string `json:"passwd,omitempty"`