|
1 | 1 | package v1beta1 |
2 | 2 |
|
3 | | -// CloudInit is passed through raw yaml file not Proxmox API |
4 | | -// so you can configure more detailed configs |
| 3 | +// CloudInit is passed to disk directly as raw yaml file |
| 4 | +// not via Proxmox API so you can configure more detailed configs |
5 | 5 | type CloudInit struct { |
6 | 6 | User *User `json:"user,omitempty"` |
7 | 7 | } |
8 | 8 |
|
9 | 9 | type User struct { |
10 | | - GrowPart GrowPart `yaml:"growpart,omitempty" json:"-"` |
11 | | - HostName string `yaml:"hostname,omitempty" json:"-"` |
12 | | - ManageEtcHosts bool `yaml:"manage_etc_hosts,omitempty" json:"-"` |
13 | | - User string `yaml:"user,omitempty" json:"user,omitempty"` |
14 | | - ChPasswd ChPasswd `yaml:"chpasswd,omitempty" json:"-"` |
15 | | - Users []string `yaml:"users,omitempty" json:"-"` |
16 | | - Password string `yaml:"password,omitempty" json:"password,omitempty"` |
17 | | - Packages []string `yaml:"packages,omitempty" json:"packages,omitempty"` |
18 | | - PackageUpgrade bool `yaml:"package_upgrade,omitempty" json:"-"` |
19 | | - WriteFiles []WriteFiles `yaml:"write_files,omitempty" json:"writeFiles,omitempty"` |
20 | | - RunCmd []string `yaml:"runcmd,omitempty" json:"runCmd,omitempty"` |
| 10 | + BootCmd []string `yaml:"bootcmd,omitempty" json:"bootcmd,omitempty"` |
| 11 | + CACerts CACert `yaml:"ca_certs,omitempty" json:"ca_certs,omitempty"` |
| 12 | + ChPasswd ChPasswd `yaml:"chpasswd,omitempty" json:"chpasswd,omitempty"` |
| 13 | + HostName string `yaml:"hostname,omitempty" json:"-"` |
| 14 | + ManageEtcHosts bool `yaml:"manage_etc_hosts,omitempty" json:"manage_etc_hosts,omitempty"` |
| 15 | + NoSSHFingerprints bool `yaml:"no_ssh_fingerprints,omitempty" json:"no_ssh_fingerprints,omitempty"` |
| 16 | + Packages []string `yaml:"packages,omitempty" json:"packages,omitempty"` |
| 17 | + PackageUpdate bool `yaml:"package_update,omitempty" json:"package_update,omitempty"` |
| 18 | + PackageUpgrade bool `yaml:"package_upgrade,omitempty" json:"package_upgrade,omitempty"` |
| 19 | + Password string `yaml:"password,omitempty" json:"password,omitempty"` |
| 20 | + RunCmd []string `yaml:"runcmd,omitempty" json:"runCmd,omitempty"` |
| 21 | + SSH SSH `yaml:"ssh,omitempty" json:"ssh,omitempty"` |
| 22 | + SSHAuthorizedKeys []string `yaml:"ssh_authorized_keys,omitempty" json:"ssh_authorized_keys,omitempty"` |
| 23 | + SSHKeys SSHKeys `yaml:"ssh_keys,omitempty" json:"ssh_keys,omitempty"` |
| 24 | + SSHPWAuth bool `yaml:"ssh_pwauth,omitempty" json:"ssh_pwauth,omitempty"` |
| 25 | + User string `yaml:"user,omitempty" json:"user,omitempty"` |
| 26 | + Users []string `yaml:"users,omitempty" json:"-"` |
| 27 | + WriteFiles []WriteFiles `yaml:"write_files,omitempty" json:"writeFiles,omitempty"` |
21 | 28 | } |
22 | 29 |
|
23 | | -type GrowPart struct { |
24 | | - Mode string `yaml:"mode,omitempty" json:"-"` |
25 | | - Devices []string `yaml:"devices,omitempty" json:"-"` |
26 | | - IgnoreGrowrootDisabled bool `yaml:"ignore_growroot_disabled,omitempty" json:"-"` |
| 30 | +type CACert struct { |
| 31 | + RemoveDefaults bool `yaml:"remove_defaults,omitempty" json:"remove_defaults,omitempty"` |
| 32 | + Trusted []string `yaml:"trusted,omitempty" json:"trusted,omitempty"` |
27 | 33 | } |
28 | 34 |
|
29 | 35 | type ChPasswd struct { |
30 | | - Expire string `yaml:"expire,omitempty" json:"-"` |
| 36 | + Expire string `yaml:"expire,omitempty" json:"expire,omitempty"` |
| 37 | +} |
| 38 | + |
| 39 | +type SSH struct { |
| 40 | + EmitKeysToConsole bool `yaml:"emit_keys_to_console,omitempty" json:"emit_keys_to_console,omitempty"` |
| 41 | +} |
| 42 | + |
| 43 | +type SSHKeys struct { |
| 44 | + RSAPrivate string `yaml:"rsa_private,omitempty" json:"rsa_private,omitempty"` |
| 45 | + RSAPublic string `yaml:"rsa_public,omitempty" json:"rsa_public,omitempty"` |
| 46 | + DSAPrivate string `yaml:"dsa_private,omitempty" json:"dsa_private,omitempty"` |
| 47 | + DSAPublic string `yaml:"dsa_public,omitempty" json:"dsa_public,omitempty"` |
| 48 | + ECDSAPrivate string `yaml:"ecdsa_private,omitempty" json:"ecdsa_private,omitempty"` |
| 49 | + EDSCAPublic string `yaml:"ecdsa_public,omitempty" json:"ecdsa_public,omitempty"` |
31 | 50 | } |
32 | 51 |
|
33 | 52 | type WriteFiles struct { |
| 53 | + Encoding string `yaml:"encoding,omitempty" json:"encoding,omitempty"` |
34 | 54 | Path string `yaml:"path,omitempty" json:"path,omitempty"` |
35 | 55 | Owner string `yaml:"owner,omitempty" json:"owner,omitempty"` |
36 | 56 | Permissions string `yaml:"permissions,omitempty" json:"permissions,omitempty"` |
| 57 | + Defer bool `yaml:"defer,omitempty" json:"defer,omitempty"` |
37 | 58 | Content string `yaml:"content,omitempty" json:"content,omitempty"` |
38 | 59 | } |
0 commit comments