distro: enable cloud-init services for openstack and qcow2 images for fedora
Previously, cloud-init was installed on qcow and openstack images but was not enabled, preventing a user from logging in to these images. Cloud-init, cloud-final, cloud-init-local and cloud-config services are enabled to make cloud-init work and to maintain consistency with official fedora 31 and fedora 32 images. The image tests have been updated to reflect these changes. Fixes #698
This commit is contained in:
parent
f38d55da88
commit
ae3fb5e1c5
12 changed files with 148 additions and 28 deletions
|
|
@ -242,6 +242,12 @@ func New() *Fedora31 {
|
||||||
"gobject-introspection",
|
"gobject-introspection",
|
||||||
"plymouth",
|
"plymouth",
|
||||||
},
|
},
|
||||||
|
enabledServices: []string{
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service",
|
||||||
|
},
|
||||||
kernelOptions: "ro biosdevname=0 net.ifnames=0",
|
kernelOptions: "ro biosdevname=0 net.ifnames=0",
|
||||||
bootable: true,
|
bootable: true,
|
||||||
defaultSize: 2 * GigaByte,
|
defaultSize: 2 * GigaByte,
|
||||||
|
|
@ -269,6 +275,12 @@ func New() *Fedora31 {
|
||||||
excludedPackages: []string{
|
excludedPackages: []string{
|
||||||
"dracut-config-rescue",
|
"dracut-config-rescue",
|
||||||
},
|
},
|
||||||
|
enabledServices: []string{
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service",
|
||||||
|
},
|
||||||
kernelOptions: "ro biosdevname=0 net.ifnames=0",
|
kernelOptions: "ro biosdevname=0 net.ifnames=0",
|
||||||
bootable: true,
|
bootable: true,
|
||||||
defaultSize: 2 * GigaByte,
|
defaultSize: 2 * GigaByte,
|
||||||
|
|
|
||||||
|
|
@ -626,6 +626,12 @@ func New() distro.Distro {
|
||||||
"gobject-introspection",
|
"gobject-introspection",
|
||||||
"plymouth",
|
"plymouth",
|
||||||
},
|
},
|
||||||
|
enabledServices: []string{
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service",
|
||||||
|
},
|
||||||
kernelOptions: "ro biosdevname=0 net.ifnames=0",
|
kernelOptions: "ro biosdevname=0 net.ifnames=0",
|
||||||
bootable: true,
|
bootable: true,
|
||||||
defaultSize: 2 * GigaByte,
|
defaultSize: 2 * GigaByte,
|
||||||
|
|
@ -653,6 +659,12 @@ func New() distro.Distro {
|
||||||
excludedPackages: []string{
|
excludedPackages: []string{
|
||||||
"dracut-config-rescue",
|
"dracut-config-rescue",
|
||||||
},
|
},
|
||||||
|
enabledServices: []string{
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service",
|
||||||
|
},
|
||||||
kernelOptions: "ro biosdevname=0 net.ifnames=0",
|
kernelOptions: "ro biosdevname=0 net.ifnames=0",
|
||||||
bootable: true,
|
bootable: true,
|
||||||
defaultSize: 2 * GigaByte,
|
defaultSize: 2 * GigaByte,
|
||||||
|
|
|
||||||
|
|
@ -4128,6 +4128,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "org.osbuild.systemd",
|
||||||
|
"options": {
|
||||||
|
"enabled_services": [
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "org.osbuild.selinux",
|
"name": "org.osbuild.selinux",
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -11639,4 +11650,4 @@
|
||||||
"unbound-anchor.timer"
|
"unbound-anchor.timer"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4009,6 +4009,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "org.osbuild.systemd",
|
||||||
|
"options": {
|
||||||
|
"enabled_services": [
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "org.osbuild.selinux",
|
"name": "org.osbuild.selinux",
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -11328,4 +11339,4 @@
|
||||||
"unbound-anchor.timer"
|
"unbound-anchor.timer"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4139,6 +4139,17 @@
|
||||||
"legacy": "i386-pc"
|
"legacy": "i386-pc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "org.osbuild.systemd",
|
||||||
|
"options": {
|
||||||
|
"enabled_services": [
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "org.osbuild.selinux",
|
"name": "org.osbuild.selinux",
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -11688,10 +11699,6 @@
|
||||||
"arp-ethers.service",
|
"arp-ethers.service",
|
||||||
"chrony-dnssrv@.timer",
|
"chrony-dnssrv@.timer",
|
||||||
"chrony-wait.service",
|
"chrony-wait.service",
|
||||||
"cloud-config.service",
|
|
||||||
"cloud-final.service",
|
|
||||||
"cloud-init-local.service",
|
|
||||||
"cloud-init.service",
|
|
||||||
"console-getty.service",
|
"console-getty.service",
|
||||||
"debug-shell.service",
|
"debug-shell.service",
|
||||||
"exit.target",
|
"exit.target",
|
||||||
|
|
@ -11735,6 +11742,10 @@
|
||||||
"auditd.service",
|
"auditd.service",
|
||||||
"autovt@.service",
|
"autovt@.service",
|
||||||
"chronyd.service",
|
"chronyd.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service",
|
||||||
|
"cloud-init.service",
|
||||||
"ctrl-alt-del.target",
|
"ctrl-alt-del.target",
|
||||||
"dbus-broker.service",
|
"dbus-broker.service",
|
||||||
"dbus-org.fedoraproject.FirewallD1.service",
|
"dbus-org.fedoraproject.FirewallD1.service",
|
||||||
|
|
|
||||||
|
|
@ -4069,6 +4069,17 @@
|
||||||
"legacy": "i386-pc"
|
"legacy": "i386-pc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "org.osbuild.systemd",
|
||||||
|
"options": {
|
||||||
|
"enabled_services": [
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "org.osbuild.selinux",
|
"name": "org.osbuild.selinux",
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -11507,10 +11518,6 @@
|
||||||
"arp-ethers.service",
|
"arp-ethers.service",
|
||||||
"chrony-dnssrv@.timer",
|
"chrony-dnssrv@.timer",
|
||||||
"chrony-wait.service",
|
"chrony-wait.service",
|
||||||
"cloud-config.service",
|
|
||||||
"cloud-final.service",
|
|
||||||
"cloud-init-local.service",
|
|
||||||
"cloud-init.service",
|
|
||||||
"console-getty.service",
|
"console-getty.service",
|
||||||
"debug-shell.service",
|
"debug-shell.service",
|
||||||
"exit.target",
|
"exit.target",
|
||||||
|
|
@ -11553,6 +11560,10 @@
|
||||||
"auditd.service",
|
"auditd.service",
|
||||||
"autovt@.service",
|
"autovt@.service",
|
||||||
"chronyd.service",
|
"chronyd.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service",
|
||||||
|
"cloud-init.service",
|
||||||
"ctrl-alt-del.target",
|
"ctrl-alt-del.target",
|
||||||
"dbus-broker.service",
|
"dbus-broker.service",
|
||||||
"dbus-org.freedesktop.nm-dispatcher.service",
|
"dbus-org.freedesktop.nm-dispatcher.service",
|
||||||
|
|
|
||||||
|
|
@ -4172,6 +4172,10 @@
|
||||||
"name": "org.osbuild.systemd",
|
"name": "org.osbuild.systemd",
|
||||||
"options": {
|
"options": {
|
||||||
"enabled_services": [
|
"enabled_services": [
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service",
|
||||||
"sshd.socket"
|
"sshd.socket"
|
||||||
],
|
],
|
||||||
"disabled_services": [
|
"disabled_services": [
|
||||||
|
|
@ -11621,10 +11625,6 @@
|
||||||
"arp-ethers.service",
|
"arp-ethers.service",
|
||||||
"chrony-dnssrv@.timer",
|
"chrony-dnssrv@.timer",
|
||||||
"chrony-wait.service",
|
"chrony-wait.service",
|
||||||
"cloud-config.service",
|
|
||||||
"cloud-final.service",
|
|
||||||
"cloud-init-local.service",
|
|
||||||
"cloud-init.service",
|
|
||||||
"console-getty.service",
|
"console-getty.service",
|
||||||
"debug-shell.service",
|
"debug-shell.service",
|
||||||
"exit.target",
|
"exit.target",
|
||||||
|
|
@ -11666,6 +11666,10 @@
|
||||||
"auditd.service",
|
"auditd.service",
|
||||||
"autovt@.service",
|
"autovt@.service",
|
||||||
"chronyd.service",
|
"chronyd.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service",
|
||||||
|
"cloud-init.service",
|
||||||
"ctrl-alt-del.target",
|
"ctrl-alt-del.target",
|
||||||
"dbus-broker.service",
|
"dbus-broker.service",
|
||||||
"dbus-org.freedesktop.nm-dispatcher.service",
|
"dbus-org.freedesktop.nm-dispatcher.service",
|
||||||
|
|
|
||||||
|
|
@ -3590,6 +3590,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "org.osbuild.systemd",
|
||||||
|
"options": {
|
||||||
|
"enabled_services": [
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "org.osbuild.selinux",
|
"name": "org.osbuild.selinux",
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -10108,4 +10119,4 @@
|
||||||
"unbound-anchor.timer"
|
"unbound-anchor.timer"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3380,6 +3380,17 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "org.osbuild.systemd",
|
||||||
|
"options": {
|
||||||
|
"enabled_services": [
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "org.osbuild.selinux",
|
"name": "org.osbuild.selinux",
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -9565,4 +9576,4 @@
|
||||||
"unbound-anchor.timer"
|
"unbound-anchor.timer"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3557,6 +3557,17 @@
|
||||||
"legacy": "i386-pc"
|
"legacy": "i386-pc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "org.osbuild.systemd",
|
||||||
|
"options": {
|
||||||
|
"enabled_services": [
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "org.osbuild.selinux",
|
"name": "org.osbuild.selinux",
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -9950,10 +9961,6 @@
|
||||||
"arp-ethers.service",
|
"arp-ethers.service",
|
||||||
"chrony-dnssrv@.timer",
|
"chrony-dnssrv@.timer",
|
||||||
"chrony-wait.service",
|
"chrony-wait.service",
|
||||||
"cloud-config.service",
|
|
||||||
"cloud-final.service",
|
|
||||||
"cloud-init-local.service",
|
|
||||||
"cloud-init.service",
|
|
||||||
"console-getty.service",
|
"console-getty.service",
|
||||||
"debug-shell.service",
|
"debug-shell.service",
|
||||||
"exit.target",
|
"exit.target",
|
||||||
|
|
@ -9996,6 +10003,10 @@
|
||||||
"auditd.service",
|
"auditd.service",
|
||||||
"autovt@.service",
|
"autovt@.service",
|
||||||
"chronyd.service",
|
"chronyd.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service",
|
||||||
|
"cloud-init.service",
|
||||||
"ctrl-alt-del.target",
|
"ctrl-alt-del.target",
|
||||||
"dbus-broker.service",
|
"dbus-broker.service",
|
||||||
"dbus-org.fedoraproject.FirewallD1.service",
|
"dbus-org.fedoraproject.FirewallD1.service",
|
||||||
|
|
|
||||||
|
|
@ -3396,6 +3396,17 @@
|
||||||
"legacy": "i386-pc"
|
"legacy": "i386-pc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "org.osbuild.systemd",
|
||||||
|
"options": {
|
||||||
|
"enabled_services": [
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "org.osbuild.selinux",
|
"name": "org.osbuild.selinux",
|
||||||
"options": {
|
"options": {
|
||||||
|
|
@ -9535,10 +9546,6 @@
|
||||||
"arp-ethers.service",
|
"arp-ethers.service",
|
||||||
"chrony-dnssrv@.timer",
|
"chrony-dnssrv@.timer",
|
||||||
"chrony-wait.service",
|
"chrony-wait.service",
|
||||||
"cloud-config.service",
|
|
||||||
"cloud-final.service",
|
|
||||||
"cloud-init-local.service",
|
|
||||||
"cloud-init.service",
|
|
||||||
"console-getty.service",
|
"console-getty.service",
|
||||||
"console-login-helper-messages-issuegen.service",
|
"console-login-helper-messages-issuegen.service",
|
||||||
"console-login-helper-messages-motdgen.service",
|
"console-login-helper-messages-motdgen.service",
|
||||||
|
|
@ -9582,6 +9589,10 @@
|
||||||
"auditd.service",
|
"auditd.service",
|
||||||
"autovt@.service",
|
"autovt@.service",
|
||||||
"chronyd.service",
|
"chronyd.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service",
|
||||||
|
"cloud-init.service",
|
||||||
"ctrl-alt-del.target",
|
"ctrl-alt-del.target",
|
||||||
"dbus-broker.service",
|
"dbus-broker.service",
|
||||||
"dbus-org.freedesktop.nm-dispatcher.service",
|
"dbus-org.freedesktop.nm-dispatcher.service",
|
||||||
|
|
|
||||||
|
|
@ -3499,6 +3499,10 @@
|
||||||
"name": "org.osbuild.systemd",
|
"name": "org.osbuild.systemd",
|
||||||
"options": {
|
"options": {
|
||||||
"enabled_services": [
|
"enabled_services": [
|
||||||
|
"cloud-init.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service",
|
||||||
"sshd.socket"
|
"sshd.socket"
|
||||||
],
|
],
|
||||||
"disabled_services": [
|
"disabled_services": [
|
||||||
|
|
@ -9649,10 +9653,6 @@
|
||||||
"arp-ethers.service",
|
"arp-ethers.service",
|
||||||
"chrony-dnssrv@.timer",
|
"chrony-dnssrv@.timer",
|
||||||
"chrony-wait.service",
|
"chrony-wait.service",
|
||||||
"cloud-config.service",
|
|
||||||
"cloud-final.service",
|
|
||||||
"cloud-init-local.service",
|
|
||||||
"cloud-init.service",
|
|
||||||
"console-getty.service",
|
"console-getty.service",
|
||||||
"console-login-helper-messages-issuegen.service",
|
"console-login-helper-messages-issuegen.service",
|
||||||
"console-login-helper-messages-motdgen.service",
|
"console-login-helper-messages-motdgen.service",
|
||||||
|
|
@ -9695,6 +9695,10 @@
|
||||||
"auditd.service",
|
"auditd.service",
|
||||||
"autovt@.service",
|
"autovt@.service",
|
||||||
"chronyd.service",
|
"chronyd.service",
|
||||||
|
"cloud-config.service",
|
||||||
|
"cloud-final.service",
|
||||||
|
"cloud-init-local.service",
|
||||||
|
"cloud-init.service",
|
||||||
"ctrl-alt-del.target",
|
"ctrl-alt-del.target",
|
||||||
"dbus-broker.service",
|
"dbus-broker.service",
|
||||||
"dbus-org.freedesktop.nm-dispatcher.service",
|
"dbus-org.freedesktop.nm-dispatcher.service",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue