bss

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IPAMNetworks = [...]string{"cmn", "hmn", "mtl", "nmn"}

IPAMNetworks - The networks that need IPAM.

View Source
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.

View Source
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

func NewBSSClient(baseURL string, httpClient *http.Client, token string) *BSSClient

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

type HostRecord struct {
	IP      string   `json:"ip"`
	Aliases []string `json:"aliases"`
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL