Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var IPAMNetworks = [...]string{"cmn", "hmn", "mtl", "nmn"}
IPAMNetworks - The networks that need IPAM.
var KubernetesNCNRunCMD = [...]string{
"/srv/cray/scripts/metal/net-init.sh",
"/srv/cray/scripts/common/update_ca_certs.py",
"/srv/cray/scripts/metal/install.sh",
"/srv/cray/scripts/common/kubernetes-cloudinit.sh",
"/srv/cray/scripts/join-spire-on-storage.sh",
"touch /etc/cloud/cloud-init.disabled",
}
KubernetesNCNRunCMD - The run-cmd for Kubernetes nodes.
var StorageNCNRunCMD = [...]string{
"/srv/cray/scripts/metal/net-init.sh",
"/srv/cray/scripts/common/update_ca_certs.py",
"/srv/cray/scripts/metal/install.sh",
"/srv/cray/scripts/common/pre-load-images.sh",
"touch /etc/cloud/cloud-init.disabled",
"/srv/cray/scripts/common/ceph-enable-services.sh",
}
StorageNCNRunCMD - The run-cmd for storage nodes.
Functions ¶
This section is empty.
Types ¶
type BSSClient ¶
type BSSClient struct {
// contains filtered or unexported fields
}
BSSClient - Structure for BSS client.
func NewBSSClient ¶
NewBSSClient - Creates a new BSS client.
func (*BSSClient) GetBSSBootparametersByName ¶
func (utilsClient *BSSClient) GetBSSBootparametersByName(name string) (*bssTypes.BootParams, error)
GetBSSBootparametersForXname - Gets the BSS boot parameters for a given xname.
func (*BSSClient) UploadEntryToBSS ¶
func (utilsClient *BSSClient) UploadEntryToBSS(bssEntry bssTypes.BootParams, method string) (string, error)
UploadEntryToBSS - Uploads an entry to BSS.
type CloudInitIPAM ¶
type CloudInitIPAM map[string]IPAMNetwork
CloudInitIPAM - Typdef for IPAM map.
func GetIPAMForNCN ¶
func GetIPAMForNCN(managementNCN sls_common.GenericHardware, networks sls_common.NetworkArray, extraSLSNetworks ...string) (ipamNetworks CloudInitIPAM)
type HostRecord ¶
HostRecord - Structure that describes an element of host_records portion of cloud-init
func BuildBSSHostRecord ¶
func BuildBSSHostRecord(networkEPs map[string]*sls_common.NetworkExtraProperties, networkName, subnetName, reservationName string, aliases []string) HostRecord
buildBSSHostRecord will build a BSS HostRecord
type HostRecords ¶
type HostRecords []HostRecord
HostRecords - Structure that describes the host_records portion of cloud-init
func GetBSSGlobalHostRecords ¶
func GetBSSGlobalHostRecords(managementNCNs []sls_common.GenericHardware, networks sls_common.NetworkArray) HostRecords
getBSSGlobalHostRecords is the BSS analog of the pit.MakeBasecampHostRecords that works with SLS data
type IPAMNetwork ¶
type IPAMNetwork struct { Gateway string `json:"gateway" mapstructure:"gateway"` CIDR string `json:"ip" mapstructure:"ip"` ParentDevice string `json:"parent_device" mapstructure:"parent_device"` VlanID int16 `json:"vlanid" mapstructure:"vlanid"` }
IPAMNetwork - Structure that describes the IPAM portion of cloud-init.
type WriteFile ¶
type WriteFile struct { Content string `json:"content"` Owner string `json:"owner"` Path string `json:"path"` Permissions string `json:"permissions"` }
WriteFile - Structure that describes the write-files portion of cloud-init.
func GetWriteFiles ¶
func GetWriteFiles(networks sls_common.NetworkArray, ipamNetworks CloudInitIPAM) (writeFiles []WriteFile)