cloudinit

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNode

func NewNode(input *NodeInput) ([]byte, error)

NewNode returns the user data string to be used on a node instance.

Types

type BaseUserData

type BaseUserData struct {
	Header            string
	CloudInitCommands []string
	AdditionalFiles   []bootstrapv1.File
	WriteFiles        []bootstrapv1.File
	Users             []bootstrapv1.User
	NTP               *bootstrapv1.NTP
}

BaseUserData is shared across all the various types of files written to disk.

type NodeInput

type NodeInput struct {
	BaseUserData

	JoinConfiguration string
}

NodeInput defines the context to generate a node user data.

Jump to

Keyboard shortcuts

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