distro/rhel86: enable auto-registration for azure
We want to ensure that cloud images connect to Red Hat[1] independently of how the content was acquired (PAYG, BYOS, or marketplace). This auto-registration feature is already enabled for AWS and this patch enables it for Azure with the same recommended settings: Services: rhsmcertd: Enabled (already done, so not changed in the patch) /etc/rhsm/rhsm.conf: auto_registration: enabled auto_registration_interval: 60 (the default, so not explicitly set) manage_repos: false The latter value `manage_repos` is left enabled (the default) in case the user explicitly requested to have the system subscribed, i.e. the `RHSMConfigWithSubscription` code path. Regenerate the relevant test manifests and image information. [1] https://cloud.redhat.com [2] https://docs.google.com/document/d/1VeZFJxNUlyZMQJh6s3NA3RLvadqATsGxVet6uuP87_4
This commit is contained in:
parent
ab98c66b9f
commit
aaee939f9b
3 changed files with 49 additions and 14 deletions
|
|
@ -977,6 +977,23 @@ func newDistro(distroName string) distro.Distro {
|
|||
Enabled: false,
|
||||
},
|
||||
},
|
||||
SubMan: &osbuild.RHSMStageOptionsSubMan{
|
||||
Rhsmcertd: &osbuild.SubManConfigRHSMCERTDSection{
|
||||
AutoRegistration: common.BoolToPtr(true),
|
||||
},
|
||||
Rhsm: &osbuild.SubManConfigRHSMSection{
|
||||
ManageRepos: common.BoolToPtr(false),
|
||||
},
|
||||
},
|
||||
},
|
||||
distro.RHSMConfigWithSubscription: {
|
||||
SubMan: &osbuild.RHSMStageOptionsSubMan{
|
||||
Rhsmcertd: &osbuild.SubManConfigRHSMCERTDSection{
|
||||
AutoRegistration: common.BoolToPtr(true),
|
||||
},
|
||||
// do not disable the redhat.repo management if the user
|
||||
// explicitly request the system to be subscribed
|
||||
},
|
||||
},
|
||||
},
|
||||
Grub2Config: &osbuild.GRUB2Config{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue