cloud_init
import "github.com/analog-substance/carbon/pkg/cloud_init"
Index
type AptSource struct {
Source string `yaml:"source"`
Keyid string `yaml:"keyid"`
}
type CloudConfig struct {
Timezone string `yaml:"timezone"`
SSHDeletekeys bool `yaml:"ssh_deletekeys"`
SSHAuthorizedKeys []string `yaml:"ssh_authorized_keys"`
Apt struct {
Sources map[string]AptSource `yaml:"sources"`
} `yaml:"apt"`
WriteFiles []WriteFile `yaml:"write_files"`
PackageUpgrade bool `yaml:"package_upgrade"`
Packages []string `yaml:"packages"`
Runcmd [][]string `yaml:"runcmd"`
}
func (*CloudConfig) MergeWith
func (c *CloudConfig) MergeWith(otherConfig *CloudConfig)
type WriteFile struct {
Path string `yaml:"path"`
Content string `yaml:"content"`
Owner string `yaml:"owner"`
Permissions string `yaml:"permissions"`
Encoding string `yaml:"encoding,omitempty"`
}