Skip to content

Commit

Permalink
Merge pull request openshift#7580 from LorbusChris/bootstrap-services
Browse files Browse the repository at this point in the history
OCPBUGS-4038: bootstrap: Enable gatewayd units only on RHCOS
  • Loading branch information
openshift-ci[bot] authored Oct 23, 2023
2 parents 04bfff5 + 84fbd99 commit bae6c39
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pkg/asset/ignition/bootstrap/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,18 @@ var (
commonEnabledServices = []string{
"progress.service",
"kubelet.service",
"chown-gatewayd-key.service",
"systemd-journal-gatewayd.socket",
"approve-csr.service",
// baremetal & openstack platform services
"keepalived.service",
"coredns.service",
"ironic.service",
"master-bmh-update.service",
}

rhcosEnabledServices = []string{
"chown-gatewayd-key.service",
"systemd-journal-gatewayd.socket",
}
)

// bootstrapTemplateData is the data to use to replace values in bootstrap
Expand Down Expand Up @@ -175,9 +178,14 @@ func (a *Common) generateConfig(dependencies asset.Parents, templateData *bootst
if err := AddStorageFiles(a.Config, "/", "bootstrap/files", templateData); err != nil {
return err
}
if err := AddSystemdUnits(a.Config, "bootstrap/systemd/units", templateData, commonEnabledServices); err != nil {
if err := AddSystemdUnits(a.Config, "bootstrap/systemd/common/units", templateData, commonEnabledServices); err != nil {
return err
}
if !templateData.IsOKD {
if err := AddSystemdUnits(a.Config, "bootstrap/systemd/rhcos/units", templateData, rhcosEnabledServices); err != nil {
return err
}
}

// Check for optional platform specific files/units
platform := installConfig.Config.Platform.Name()
Expand Down

0 comments on commit bae6c39

Please sign in to comment.