Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
VendorData VendorData
MetaData MetaData
UserDataPath string
}
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(logger hclog.Logger) (*Controller, error)
func (*Controller) Apply ¶
func (c *Controller) Apply(ci *Config, ciPath string) error
Apply takes the cloud init configuration and writes it into an iso (ISO-9660) disk. In order for cloud init to pick it up, the meta-data, user-data and vendor-data files need to be in the root of the disk, and it needs to be labeled with "cidata".
type MountFileConfig ¶
type VendorData ¶
type VendorData struct {
// The password and SSHKeys will be added to the default user of the cloud image
// distribution.
Password string
SSHKey string
// RunCMD will be run inside the VM once it has started.
RunCMD []string
// BootCMD will be run inside the VM at booting time.
BootCMD []string
Mounts []MountFileConfig
Files []File
}
Click to show internal directories.
Click to hide internal directories.