Skip to main content

Module cloud_init

Module cloud_init 

Source
Expand description

Provider-agnostic cloud-init reference provisioner.

CloudInitProvisioner shells out to operator-supplied commands rather than linking any cloud SDK. The operator provides a provision_cmd (and matching terminate_cmd / optional describe_cmd) as shell templates; the provisioner renders a cloud-init #cloud-config user-data document and substitutes it — along with the requested shape — into those templates before running them via sh -c.

The generated user-data runs zlayer node join on first boot so the freshly created machine registers itself with the cluster leader.

Structs§

CloudInitConfig
Configuration for CloudInitProvisioner.
CloudInitProvisioner
A CloudProvisioner that drives operator-supplied shell commands.

Functions§

default_user_data_template
Default cloud-init #cloud-config user-data template.