internal/distro/rhel8: Add GCPGuestAgentConf

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

View file

@ -1778,6 +1778,14 @@ func newDistro(distroName string) distro.Distro {
},
},
},
GCPGuestAgentConfig: &osbuild.GcpGuestAgentConfigOptions{
ConfigScope: osbuild.GcpGuestAgentConfigScopeDistro,
Config: &osbuild.GcpGuestAgentConfig{
InstanceSetup: &osbuild.GcpGuestAgentConfigInstanceSetup{
SetBotoConfig: common.BoolToPtr(false),
},
},
},
}
if rd.osVersion == "8.4" {

View file

@ -647,6 +647,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))
}