|
1 | | -package v1beta1 |
2 | | - |
3 | | -// CloudInit is passed through raw yaml file not Proxmox API |
4 | | -// so you can configure more detailed configs |
5 | | -type CloudInit struct { |
6 | | - User *User `json:"user,omitempty"` |
7 | | -} |
8 | | - |
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:"-"` |
18 | | - PackageUpgrade bool `yaml:"package_upgrade,omitempty" json:"-"` |
19 | | - WriteFiles []WriteFiles `yaml:"write_files,omitempty" json:"-"` |
20 | | - RunCmd []string `yaml:"runcmd,omitempty" json:"-"` |
21 | | -} |
22 | | - |
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:"-"` |
27 | | -} |
28 | | - |
29 | | -type ChPasswd struct { |
30 | | - Expire string `yaml:"expire,omitempty" json:"-"` |
31 | | -} |
32 | | - |
33 | | -type WriteFiles struct { |
34 | | - Path string `yaml:"path,omitempty" json:"-"` |
35 | | - Owner string `yaml:"owner,omitempty" json:"-"` |
36 | | - Permissions string `yaml:"permissions,omitempty" json:"-"` |
37 | | - Content string `yaml:"content,omitempty" json:"-"` |
38 | | -} |
| 1 | +package v1beta1 |
| 2 | + |
| 3 | +// CloudInit is passed through raw yaml file not Proxmox API |
| 4 | +// so you can configure more detailed configs |
| 5 | +type CloudInit struct { |
| 6 | + User *User `json:"user,omitempty"` |
| 7 | +} |
| 8 | + |
| 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:"-"` |
| 18 | + PackageUpgrade bool `yaml:"package_upgrade,omitempty" json:"-"` |
| 19 | + WriteFiles []WriteFiles `yaml:"write_files,omitempty" json:"-"` |
| 20 | + RunCmd []string `yaml:"runcmd,omitempty" json:"-"` |
| 21 | +} |
| 22 | + |
| 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:"-"` |
| 27 | +} |
| 28 | + |
| 29 | +type ChPasswd struct { |
| 30 | + Expire string `yaml:"expire,omitempty" json:"-"` |
| 31 | +} |
| 32 | + |
| 33 | +type WriteFiles struct { |
| 34 | + Path string `yaml:"path,omitempty" json:"-"` |
| 35 | + Owner string `yaml:"owner,omitempty" json:"-"` |
| 36 | + Permissions string `yaml:"permissions,omitempty" json:"-"` |
| 37 | + Content string `yaml:"content,omitempty" json:"-"` |
| 38 | +} |
0 commit comments