sailesh1993 / rpms / cloud-init

Forked from rpms/cloud-init 10 months ago
Clone
7ec9e8
From 251836a62eb3061b8d26177fd5997a96dccec21b Mon Sep 17 00:00:00 2001
7ec9e8
From: Eduardo Otubo <otubo@redhat.com>
7ec9e8
Date: Thu, 28 May 2020 08:44:06 +0200
7ec9e8
Subject: [PATCH 3/4] Enable ssh_deletekeys by default
7ec9e8
7ec9e8
RH-Author: Eduardo Otubo <otubo@redhat.com>
7ec9e8
Message-id: <20200317091705.15715-1-otubo@redhat.com>
7ec9e8
Patchwork-id: 94365
7ec9e8
O-Subject: [RHEL-7.9/RHEL-8.2.0 cloud-init PATCH] Enable ssh_deletekeys by default
7ec9e8
Bugzilla: 1814152
7ec9e8
RH-Acked-by: Mohammed Gamal <mgamal@redhat.com>
7ec9e8
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
7ec9e8
7ec9e8
The configuration option ssh_deletekeys will trigger the generation
7ec9e8
of new ssh keys for every new instance deployed.
7ec9e8
7ec9e8
x-downstream-only: yes
7ec9e8
resolves: rhbz#1814152
7ec9e8
7ec9e8
Signed-off-by: Eduardo Otubo <otubo@redhat.com>
7ec9e8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
7ec9e8
---
7ec9e8
 rhel/cloud.cfg | 2 +-
7ec9e8
 1 file changed, 1 insertion(+), 1 deletion(-)
7ec9e8
7ec9e8
diff --git a/rhel/cloud.cfg b/rhel/cloud.cfg
7ec9e8
index 82e8bf6..9ecba21 100644
7ec9e8
--- a/rhel/cloud.cfg
7ec9e8
+++ b/rhel/cloud.cfg
7ec9e8
@@ -6,7 +6,7 @@ ssh_pwauth:   0
7ec9e8
 
7ec9e8
 mount_default_fields: [~, ~, 'auto', 'defaults,nofail,x-systemd.requires=cloud-init.service', '0', '2']
7ec9e8
 resize_rootfs_tmp: /dev
7ec9e8
-ssh_deletekeys:   0
7ec9e8
+ssh_deletekeys:   1
7ec9e8
 ssh_genkeytypes:  ~
7ec9e8
 syslog_fix_perms: ~
7ec9e8
 disable_vmware_customization: false
7ec9e8
-- 
7ec9e8
1.8.3.1
7ec9e8