This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

cloud_init

    import "github.com/analog-substance/carbon/pkg/cloud_init"
    

    Index

    type AptSource

    type AptSource struct {
        Source string `yaml:"source"`
        Keyid  string `yaml:"keyid"`
    }
    

    type CloudConfig

    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

    type WriteFile struct {
        Path        string `yaml:"path"`
        Content     string `yaml:"content"`
        Owner       string `yaml:"owner"`
        Permissions string `yaml:"permissions"`
        Encoding    string `yaml:"encoding,omitempty"`
    }