distro/rhel86: install and enable NetworkManager-cloud-setup
Install the package, enable timer and service and set the correct env variable via a drop-in to enable the Azure cloud.
This commit is contained in:
parent
dc0ee05bc3
commit
3b798edecb
5 changed files with 101 additions and 0 deletions
|
|
@ -925,6 +925,8 @@ func newDistro(distroName string) distro.Distro {
|
|||
},
|
||||
EnabledServices: []string{
|
||||
"firewalld",
|
||||
"nm-cloud-setup.service",
|
||||
"nm-cloud-setup.timer",
|
||||
"sshd",
|
||||
"systemd-resolved",
|
||||
"waagent",
|
||||
|
|
@ -1057,6 +1059,17 @@ func newDistro(distroName string) distro.Distro {
|
|||
),
|
||||
},
|
||||
},
|
||||
SystemdUnit: []*osbuild.SystemdUnitStageOptions{
|
||||
{
|
||||
Unit: "nm-cloud-setup.service",
|
||||
Dropin: "10-rh-enable-for-azure.conf",
|
||||
Config: osbuild.SystemdServiceUnitDropin{
|
||||
Service: &osbuild.SystemdUnitServiceSection{
|
||||
Environment: "NM_CLOUD_SETUP_AZURE=yes",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
DefaultTarget: "multi-user.target",
|
||||
},
|
||||
kernelOptions: "ro crashkernel=auto console=tty1 console=ttyS0 earlyprintk=ttyS0 rootdelay=300",
|
||||
|
|
|
|||
|
|
@ -346,6 +346,7 @@ func azureRhuiCommonPackageSet(t *imageType) rpmmd.PackageSet {
|
|||
Include: []string{
|
||||
"@Server",
|
||||
"NetworkManager",
|
||||
"NetworkManager-cloud-setup",
|
||||
"kernel",
|
||||
"kernel-core",
|
||||
"kernel-modules",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue