11package v1beta1
22
3- // CloudInit defines options related to the bootstrapping systems where
4- // CloudInit is used.
3+ // CloudInit is passed through raw yaml file not Proxmox API
4+ // so you can configure more detailed configs
55type CloudInit struct {
66 User * User `json:"user,omitempty"`
7-
8- // Meta *Meta `json:"-"`
9-
10- // DEPRECATED : use IPConfig instead
11- Network * Network `json:"-"`
127}
138
149type User struct {
@@ -25,30 +20,6 @@ type User struct {
2520 RunCmd []string `yaml:"runcmd,omitempty" json:"-"`
2621}
2722
28- type Network struct {
29- Version int `yaml:"version,omitempty" json:"version,omitempty"`
30- Config []NetworkConfig `yaml:"config,omitempty" json:"config,omitempty"`
31- }
32-
33- type NetworkConfig struct {
34- Type string `yaml:"type,omitempty" json:"type,omitempty"`
35- Name string `yaml:"name,omitempty" json:"name,omitempty"`
36- MacAddress string `yaml:"mac_address,omitempty" json:"mac_address,omitempty"`
37- Subnets []Subnet `yaml:"subnets,omitempty" json:"subnets,omitempty"`
38- Destination string `yaml:"destination,omitempty" json:"destination,omitempty"`
39- Gateway string `yaml:"gateway,omitempty" json:"gateway,omitempty"`
40- }
41-
42- type Subnet struct {
43- Type string `yaml:"type,omitempty" json:"type,omitempty"`
44- Address string `yaml:"address,omitempty" json:"address,omitempty"`
45- NetMask string `yaml:"netmask,omitempty" json:"netmask,omitempty"`
46- Gateway string `yaml:"gateway,omitempty" json:"gateway,omitempty"`
47- }
48-
49- type Meta struct {
50- }
51-
5223type GrowPart struct {
5324 Mode string `yaml:"mode,omitempty" json:"-"`
5425 Devices []string `yaml:"devices,omitempty" json:"-"`
0 commit comments