This commit is contained in:
asteam
2025-01-21 12:16:49 +03:00
parent 76ea459b3d
commit 60e23338ad
751 changed files with 17877 additions and 1908 deletions

View File

@@ -160,6 +160,9 @@ func MakeSchemaDataSourceCompute() map[string]schema.Attribute {
"arch": schema.StringAttribute{
Computed: true,
},
"auto_start_w_node": schema.BoolAttribute{
Computed: true,
},
"chipset": schema.StringAttribute{
Computed: true,
},
@@ -708,5 +711,8 @@ func MakeSchemaDataSourceCompute() map[string]schema.Attribute {
"virtual_image_name": schema.StringAttribute{
Computed: true,
},
"vnc_password": schema.StringAttribute{
Computed: true,
},
}
}

View File

@@ -166,6 +166,9 @@ func MakeSchemaDataSourceComputeList() map[string]schema.Attribute {
"arch": schema.StringAttribute{
Computed: true,
},
"auto_start_w_node": schema.BoolAttribute{
Computed: true,
},
"chipset": schema.StringAttribute{
Computed: true,
},

View File

@@ -158,6 +158,9 @@ func MakeSchemaDataSourceComputeListDeleted() map[string]schema.Attribute {
"arch": schema.StringAttribute{
Computed: true,
},
"auto_start_w_node": schema.BoolAttribute{
Computed: true,
},
"chipset": schema.StringAttribute{
Computed: true,
},

View File

@@ -291,6 +291,8 @@ func MakeSchemaResourceCompute() map[string]schema.Attribute {
},
"pin_to_stack": schema.BoolAttribute{
Optional: true,
Computed: true,
Default: booldefault.StaticBool(false),
},
"description": schema.StringAttribute{
Optional: true,
@@ -345,23 +347,20 @@ func MakeSchemaResourceCompute() map[string]schema.Attribute {
Description: "Flag for redeploy compute",
},
"started": schema.BoolAttribute{
Optional: true,
Computed: true,
Default: booldefault.StaticBool(true),
//Default: true,
Optional: true,
Computed: true,
Default: booldefault.StaticBool(true),
Description: "Is compute started.",
},
"detach_disks": schema.BoolAttribute{
Optional: true,
Computed: true,
Default: booldefault.StaticBool(true),
//Default: true,
},
"permanently": schema.BoolAttribute{
Optional: true,
Computed: true,
Default: booldefault.StaticBool(true),
//Default: true,
},
"is": schema.StringAttribute{
Optional: true,
@@ -380,13 +379,15 @@ func MakeSchemaResourceCompute() map[string]schema.Attribute {
Description: "Rule for VM placement with NUMA affinity.",
},
"cpu_pin": schema.BoolAttribute{
Optional: true,
//Default: false,
Optional: true,
Computed: true,
Default: booldefault.StaticBool(false),
Description: "Run VM on dedicated CPUs. To use this feature, the system must be pre-configured by allocating CPUs on the physical node.",
},
"hp_backed": schema.BoolAttribute{
Optional: true,
//Default: false,
Optional: true,
Computed: true,
Default: booldefault.StaticBool(false),
Description: "Use Huge Pages to allocate RAM of the virtual machine. The system must be pre-configured by allocating Huge Pages on the physical node.",
},
"pci_devices": schema.SetAttribute{
@@ -402,6 +403,12 @@ func MakeSchemaResourceCompute() map[string]schema.Attribute {
},
Description: "Type of the emulated system, Q35 or i440fx",
},
"auto_start_w_node": schema.BoolAttribute{
Optional: true,
Computed: true,
Description: "Flag for start compute after node exits from MAINTENANCE state",
Default: booldefault.StaticBool(false),
},
// computed attributes
"compute_id": schema.Int64Attribute{
@@ -801,6 +808,9 @@ func MakeSchemaResourceCompute() map[string]schema.Attribute {
"virtual_image_name": schema.StringAttribute{
Computed: true,
},
"vnc_password": schema.StringAttribute{
Computed: true,
},
}
}