diff options
author | Scott Moser <smoser@ubuntu.com> | 2018-08-06 16:50:26 +0000 |
---|---|---|
committer | Server Team CI Bot <josh.powers+server-team-bot@canonical.com> | 2018-08-06 16:50:26 +0000 |
commit | e218c597c87205b239d5628dce1dc377fb83a0ea (patch) | |
tree | cf2fcd98988694428264e60d5575936d5325ae58 | |
parent | 538af8e64facb7df55c759d9ca82a0fb3a6ce325 (diff) | |
download | vyos-cloud-init-e218c597c87205b239d5628dce1dc377fb83a0ea.tar.gz vyos-cloud-init-e218c597c87205b239d5628dce1dc377fb83a0ea.zip |
redhat: remove ssh keys on new instance.
This changes redhat's default behavior to remove the ssh keys on
new instance (ssh_deletekeys will now be at its default true value).
On redhat systems, cloud-init.service has both:
Wants=sshd-keygen.service
Before=sshd-keygen.serviceh
Which is why 'ssh_genkeytypes' is set to None
(yaml '~' == yaml null == python none).
I've changed that to be null as it seems more clear and we do not
use the tilda anywhere else in configs.
LP: #1781094
rhbz: https://bugzilla.redhat.com/show_bug.cgi?id=1598832
-rw-r--r-- | config/cloud.cfg.tmpl | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/config/cloud.cfg.tmpl b/config/cloud.cfg.tmpl index 5619de3e..1fef133a 100644 --- a/config/cloud.cfg.tmpl +++ b/config/cloud.cfg.tmpl @@ -24,8 +24,6 @@ disable_root: true {% if variant in ["centos", "fedora", "rhel"] %} mount_default_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2'] resize_rootfs_tmp: /dev -ssh_deletekeys: 0 -ssh_genkeytypes: ~ ssh_pwauth: 0 {% endif %} |