diff options
author | Alberto Contreras <alberto.contreras@canonical.com> | 2022-05-10 21:47:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 13:47:13 -0600 |
commit | 5054ffe1884896bca9250a3c30678e78d228df1a (patch) | |
tree | c81c43b274732213eab9a84143e923dc2a40f5c1 /packages | |
parent | a7c22b37952e758aa741465d96dcc0ff85da283c (diff) | |
download | cloud-init-git-5054ffe1884896bca9250a3c30678e78d228df1a.tar.gz |
Handle error if SSH service no present. (#1422)
Add pre-fight check to verify if SSH is installed and enabled.
- When not installed, perform an early return with a warning and no
modifications
- When not enabled, update ssh config, but do not restart ssh.
- Handle an exception when user-data provides 'ssh_pwauth: True'
and the open-ssh service is not available
- Add openssh-server as suggested package for debian-based distros
LP: #1969526
Diffstat (limited to 'packages')
-rw-r--r-- | packages/debian/control.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/debian/control.in b/packages/debian/control.in index 7cded051..5bb915a9 100644 --- a/packages/debian/control.in +++ b/packages/debian/control.in @@ -14,7 +14,7 @@ Depends: ${misc:Depends}, iproute2, isc-dhcp-client Recommends: eatmydata, sudo, software-properties-common, gdisk -Suggests: ssh-import-id +Suggests: ssh-import-id, openssh-server Description: Init scripts for cloud instances Cloud instances need special scripts to run during initialisation to retrieve and install ssh keys and to let the user run various scripts. |