internal/distro/rhel90: Add GCPGuestAgentConf

Add NewGcpGuestAgentConfStage to osPipeline
This commit is contained in:
fkolwa 2022-08-09 11:01:54 +02:00 committed by Tomáš Hozza
parent 2d3997967f
commit 93b57652ba
2 changed files with 12 additions and 0 deletions

View file

@ -1666,6 +1666,14 @@ func newDistro(distroName string) distro.Distro {
},
},
},
GCPGuestAgentConfig: &osbuild.GcpGuestAgentConfigOptions{
ConfigScope: osbuild.GcpGuestAgentConfigScopeDistro,
Config: &osbuild.GcpGuestAgentConfig{
InstanceSetup: &osbuild.GcpGuestAgentConfigInstanceSetup{
SetBotoConfig: common.BoolToPtr(false),
},
},
},
}
gceImgType := imageType{

View file

@ -639,6 +639,10 @@ func osPipeline(t *imageType,
p.AddStage(osbuild.NewYumReposStage(yumRepo))
}
if gcpGuestAgentConfig := imageConfig.GCPGuestAgentConfig; gcpGuestAgentConfig != nil {
p.AddStage(osbuild.NewGcpGuestAgentConfigStage(gcpGuestAgentConfig))
}
if udevRules := imageConfig.UdevRules; udevRules != nil {
p.AddStage(osbuild.NewUdevRulesStage(udevRules))
}