osbuild2: add org.osbuild.waagent.config stage
Add the necessary structs for the `org.osbuild.waagent.config` stage.
This commit is contained in:
parent
8f746698f0
commit
fcbaf80d67
1 changed files with 19 additions and 0 deletions
19
internal/osbuild2/waagent_conf.go
Normal file
19
internal/osbuild2/waagent_conf.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package osbuild2
|
||||
|
||||
type WAAgentConfig struct {
|
||||
RDFormat *bool `json:"ResourceDisk.Format"`
|
||||
RDEnableSwap *bool `json:"ResourceDisk.EnableSwap"`
|
||||
}
|
||||
|
||||
type WAAgentConfStageOptions struct {
|
||||
Config WAAgentConfig `json:"config"`
|
||||
}
|
||||
|
||||
func (WAAgentConfStageOptions) isStageOptions() {}
|
||||
|
||||
func NewWAAgentConfStage(options *WAAgentConfStageOptions) *Stage {
|
||||
return &Stage{
|
||||
Type: "org.osbuild.waagent.conf",
|
||||
Options: options,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue