From 446bf3814da7f8b3770709869cb58de96af48e3a Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 25 Jan 2024 18:14:35 +0100 Subject: [PATCH] answers: move ssh-import-id directive to SSH section When running answers-based automation, the SSH controller looks into more than one section to find ssh-import-id directives. If the "SSH" section exists, then it is where the ssh-import-id directives must be placed. However, if the section does not exist, the controller will also look for ssh-import-id directives in the "Identity" section. The answers.yaml file used this special mechanism. This is fine. However, if one adds a SSH section to customize other settings (e.g., install_server, pwauth), then the ssh-import-id directives in the Identity section suddently get ignored ; which is confusing and looks as if there is a bug. Let's move ssh-import-id directives to the SSH section. Signed-off-by: Olivier Gayot --- examples/answers/answers.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/answers/answers.yaml b/examples/answers/answers.yaml index 6ea54f58..45695025 100644 --- a/examples/answers/answers.yaml +++ b/examples/answers/answers.yaml @@ -23,6 +23,7 @@ Identity: hostname: ubuntu-server # ubuntu password: '$6$wdAcoXrU039hKYPd$508Qvbe7ObUnxoj15DRCkzC3qO7edjH0VV7BPNRDYK4QR8ofJaEEF2heacn0QgD.f8pO8SNp83XNdWG6tocBM1' +SSH: # We have a specific dry-run behaviour for heracles, making the call to # ssh-import-id succeed unconditionally. ssh-import-id: lp:heracles