distro/rhel9: add consumer certificates when ostree rhsm is true

This commit is contained in:
Sanne Raymaekers 2022-12-08 16:55:55 +01:00 committed by Achilleas Koutsou
parent 19ec3be6bd
commit cb127cd1b0

View file

@ -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