-
Notifications
You must be signed in to change notification settings - Fork 7
/
install_config.go
55 lines (48 loc) · 1.92 KB
/
install_config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright (c) 2021 Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
package utils
// InstallConfig definition for install config structure from install-config.yaml
type InstallConfig struct {
BaseDomain string `yaml:"baseDomain,omitempty"`
Networking Networking `yaml:"networking,omitempty"`
Metadata Metadata `yaml:"metadata"`
Platform Platform `yaml:"platform,omitempty"`
PullSecret string `yaml:"pullSecret,omitempty"`
SSHKey string `yaml:"sshKey,omitempty"`
}
// Networking definition
type Networking struct {
NetworkType string `yaml:"networkType"`
MachineCIDR string `yaml:"machineCIDR"`
}
// Platform definition
type Platform struct {
Baremetal Baremetal `yaml:"baremetal,omitempty"`
}
// Baremetal specs for target baremetal provisioning
type Baremetal struct {
ExternalBridge string `yaml:"externalBridge,omitempty"`
ProvisioningBridge string `yaml:"provisioningBridge,omitempty"`
LibvirtURI string `yaml:"libvirtURI,omitempty"`
ProvisioningNetworkInterface string `yaml:"provisioningNetworkInterface,omitempty"`
ProvisioningNetworkCIDR string `yaml:"provisioningNetworkCIDR,omitempty"`
APIVIP string `yaml:"apiVIP,omitempty"`
DNSVIP string `yaml:"dnsVIP,omitempty"`
IngressVIP string `yaml:"ingressVIP,omitempty"`
Hosts []Host `yaml:"hosts,omitempty"`
SSHKnownHosts string `yaml:"sshKnownHosts,omitempty"`
}
// Host is an array of baremetal assets
type Host struct {
Name string `yaml:"name"`
Role string `yaml:"role"`
Bmc Bmc `yaml:"bmc"`
BootMACAddress string `yaml:"bootMACAddress"`
HardwareProfile string `yaml:"hardwareProfile"`
}
// Bmc definition
type Bmc struct {
Address string `yaml:"address"`
Username string `yaml:"username"`
Password string `yaml:"password"`
}