Cédric Jeanneret 6645f47db4 Ensure cloud-init is configured to generated host keys
It may happen a base image has an edited version of cloud-init
"cloud.cfg" that prevents the host keys to be generated.

While it didn't represent an issue with older releases of cloud-init,
starting cloud-init-22 this isn't true anymore.

Before that release, an sshd-keygen@.service was present and called by
sshd-keygen.target (which was called by sshd.service), and we ended up
with ssh host keys in any cases - either generated from cloud-init, or
generated by sshd-keygen.service.

But cloud-init-22 introduced an edition to the sshd-keygen.service,
making it check for the presence of cloud-init service, and preventing
this sshd-keygen to kick in this case.

So we'd better ensure cloud-init is able to generate the keys, else
we'll be in a bad state, since it's instructed to remove the ones
present.

Closes-Bug: #1971751
Change-Id: I37b2f3e9d57a86544ef14e74a4a927309c18bbf0
2022-05-06 11:10:54 +02:00
..
2020-04-02 10:11:35 +11:00
2021-09-01 23:49:27 +02:00
2022-02-10 15:08:56 +11:00
2017-04-05 13:11:22 +10:00
2017-01-31 14:14:19 +11:00
2022-04-07 09:01:13 +02:00
2022-04-26 17:28:00 +10:00
2017-05-19 12:43:36 -07:00
2019-12-18 11:42:02 -05:00
2021-07-05 11:45:02 +10:00
2017-05-19 12:43:36 -07:00
2019-05-29 12:07:44 +00:00
2022-02-10 15:08:56 +11:00
2017-02-02 20:36:23 +11:00
2020-08-24 10:21:35 -05:00
2017-02-02 11:20:00 +11:00
2017-03-14 14:49:49 +11:00
2018-02-23 10:04:40 +11:00
2021-07-05 11:45:02 +10:00
2018-11-28 11:04:50 +11:00