| 1 | |
| 2 | |
| 3 | |
| 4 | package cloudinittypes |
| 5 | |
| 6 | type UserData struct { |
| 7 | Growpart *Growpart `yaml:"growpart,omitempty"` |
| 8 | |
| 9 | PackageUpdate bool `yaml:"package_update,omitempty"` |
| 10 | PackageUpgrade bool `yaml:"package_upgrade,omitempty"` |
| 11 | PackageRebootIfRequired bool `yaml:"package_reboot_if_required,omitempty"` |
| 12 | |
| 13 | Mounts [][]string `yaml:"mounts,omitempty"` |
| 14 | |
| 15 | Timezone string `yaml:"timezone,omitempty"` |
| 16 | |
| 17 | Users []User `yaml:"users,omitempty"` |
| 18 | |
| 19 | WriteFiles []WriteFile `yaml:"write_files,omitempty"` |
| 20 | |
| 21 | ManageResolvConf bool `yaml:"manage_resolv_conf,omitempty"` |
| 22 | ResolvConf *ResolvConf `yaml:"resolv_conf,omitempty"` |
| 23 | |
| 24 | CACerts *CACerts `yaml:"ca_certs,omitempty"` |
| 25 | |
| 26 | BootCmd []string `yaml:"bootcmd,omitempty"` |
| 27 | } |
| 28 | |
| 29 | type Growpart struct { |
| 30 | Mode string `yaml:"mode"` |
| 31 | Devices []string `yaml:"devices"` |
| 32 | } |
| 33 | |
| 34 | type User struct { |
| 35 | Name string `yaml:"name,omitempty"` |
| 36 | Gecos string `yaml:"gecos,omitempty"` |
| 37 | UID string `yaml:"uid,omitempty"` TODO: |
| 38 | Homedir string `yaml:"homedir,omitempty"` |
| 39 | Shell string `yaml:"shell,omitempty"` |
| 40 | Sudo string `yaml:"sudo,omitempty"` TODO: |
| 41 | LockPasswd string `yaml:"lock_passwd,omitempty"` |
| 42 | SSHAuthorizedKeys []string `yaml:"ssh-authorized-keys,omitempty"` |
| 43 | } |
| 44 | |
| 45 | type WriteFile struct { |
| 46 | Content string `yaml:"content"` |
| 47 | Owner string `yaml:"owner,omitempty"` |
| 48 | Path string `yaml:"path"` |
| 49 | Permissions string `yaml:"permissions,omitempty"` TODO: |
| 50 | } |
| 51 | |
| 52 | type ResolvConf struct { |
| 53 | Nameservers []string `yaml:"nameservers,omitempty"` |
| 54 | } |
| 55 | |
| 56 | type CACerts struct { |
| 57 | RemoveDefaults bool `yaml:"remove_defaults,omitempty"` |
| 58 | Trusted []string `yaml:"trusted,omitempty"` |
| 59 | } |