generator

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OSConfigFormat format of the OSC to be generated. Must match the name of a subdirectory under
	// the 'templates' directory. Presently 'script' and 'cloud-init' are supported
	OSConfigFormat = "OS_CONFIG_FORMAT"
	// OSConfigFormatScript is a constant for the 'script' config format.
	OSConfigFormatScript = "script"
	// OSConfigFormatCloudInit is a constant for the 'cloud-init' config format.
	OSConfigFormatCloudInit = "cloud-init"

	// BootCommand command to be executed to bootstap the OS Configuration.
	// Depends on the OSC format and the infrastructure platform.
	// Well known valid values are `"/bin/bash %s"` and `"/usr/bin/cloud-init clean && /usr/bin/cloud-init --file %s init"`.
	BootCommand = "BOOT_COMMAND"
	// BootCommandBash is a constant for the /bin/bash boot command.
	BootCommandBash = "/bin/bash %s"
)

Variables

This section is empty.

Functions

func NewCloudInitGenerator

func NewCloudInitGenerator() (*oscommontemplate.CloudInitGenerator, error)

NewCloudInitGenerator creates a new Generator using the template file for suse-chost

Types

This section is empty.

Jump to

Keyboard shortcuts

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