blueprint: add openscap Tailoring customizations
See https://github.com/osbuild/images/pull/43
This commit is contained in:
parent
fb3761d602
commit
f2deb3a083
2 changed files with 16 additions and 3 deletions
|
|
@ -217,7 +217,14 @@ func Convert(bp Blueprint) iblueprint.Blueprint {
|
|||
customizations.FDO = &ifdo
|
||||
}
|
||||
if oscap := c.OpenSCAP; oscap != nil {
|
||||
ioscap := iblueprint.OpenSCAPCustomization(*oscap)
|
||||
ioscap := iblueprint.OpenSCAPCustomization{
|
||||
DataStream: oscap.DataStream,
|
||||
ProfileID: oscap.ProfileID,
|
||||
}
|
||||
if tailoring := oscap.Tailoring; tailoring != nil {
|
||||
itailoring := iblueprint.OpenSCAPTailoringCustomizations(*tailoring)
|
||||
ioscap.Tailoring = &itailoring
|
||||
}
|
||||
customizations.OpenSCAP = &ioscap
|
||||
}
|
||||
if ign := c.Ignition; ign != nil {
|
||||
|
|
|
|||
|
|
@ -107,8 +107,14 @@ type ServicesCustomization struct {
|
|||
}
|
||||
|
||||
type OpenSCAPCustomization struct {
|
||||
DataStream string `json:"datastream,omitempty" toml:"datastream,omitempty"`
|
||||
ProfileID string `json:"profile_id,omitempty" toml:"profile_id,omitempty"`
|
||||
DataStream string `json:"datastream,omitempty" toml:"datastream,omitempty"`
|
||||
ProfileID string `json:"profile_id,omitempty" toml:"profile_id,omitempty"`
|
||||
Tailoring *OpenSCAPTailoringCustomizations `json:"tailoring,omitempty" toml:"tailoring,omitempty"`
|
||||
}
|
||||
|
||||
type OpenSCAPTailoringCustomizations struct {
|
||||
Selected []string `json:"selected,omitempty" toml:"selected,omitempty"`
|
||||
Unselected []string `json:"unselected,omitempty" toml:"unselected,omitempty"`
|
||||
}
|
||||
|
||||
type CustomizationError struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue