distro/rhel9: add consumer certificates when ostree rhsm is true
This commit is contained in:
parent
19ec3be6bd
commit
cb127cd1b0
1 changed files with 9 additions and 0 deletions
|
|
@ -218,6 +218,9 @@ func edgeCommitImage(workload workload.Workload,
|
|||
URL: options.OSTree.URL,
|
||||
ContentURL: options.OSTree.ContentURL,
|
||||
}
|
||||
if options.OSTree.RHSM {
|
||||
img.OSTreeParent.Secrets = "org.osbuild.rhsm.consumer"
|
||||
}
|
||||
}
|
||||
|
||||
img.OSVersion = t.arch.distro.osVersion
|
||||
|
|
@ -249,6 +252,9 @@ func edgeContainerImage(workload workload.Workload,
|
|||
URL: options.OSTree.URL,
|
||||
ContentURL: options.OSTree.ContentURL,
|
||||
}
|
||||
if options.OSTree.RHSM {
|
||||
img.OSTreeParent.Secrets = "org.osbuild.rhsm.consumer"
|
||||
}
|
||||
}
|
||||
|
||||
img.OSVersion = t.arch.distro.osVersion
|
||||
|
|
@ -276,6 +282,9 @@ func edgeInstallerImage(workload workload.Workload,
|
|||
ContentURL: options.OSTree.ContentURL,
|
||||
Checksum: options.OSTree.FetchChecksum,
|
||||
}
|
||||
if options.OSTree.RHSM {
|
||||
commit.Secrets = "org.osbuild.rhsm.consumer"
|
||||
}
|
||||
img := image.NewOSTreeInstaller(commit)
|
||||
|
||||
img.Platform = t.platform
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue