diff options
| author | Mark Goddard <mark@stackhpc.com> | 2020-01-29 17:04:43 +0000 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2020-01-30 11:23:48 +0000 |
| commit | 892ae92d971fd7a2c8d39e416512bb69f7fd833f (patch) | |
| tree | 531fe6ad8d40f5d8574c724528391c56dbdfa8e6 /docker/keystone | |
| parent | 70423f19596f92ed01c89e7d62f8c46a6dba6a23 (diff) | |
| download | kolla-892ae92d971fd7a2c8d39e416512bb69f7fd833f.tar.gz kolla-892ae92d971fd7a2c8d39e416512bb69f7fd833f.zip | |
CentOS 8: Allow SSH access to keystone_ssh and nova_ssh
The centos:8 image contains a /run/nologin file, which prevents SSH
access to it. Remove this file in the keystone_ssh and nova_ssh images
to allow login via SSH.
Change-Id: I59dc2c4207af6812501b6c6acdb34e51a3e848c4
Partially-Implements: blueprint centos-rhel-8
Diffstat (limited to 'docker/keystone')
| -rw-r--r-- | docker/keystone/keystone-ssh/Dockerfile.j2 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docker/keystone/keystone-ssh/Dockerfile.j2 b/docker/keystone/keystone-ssh/Dockerfile.j2 index 233dedf7c..442f2df9d 100644 --- a/docker/keystone/keystone-ssh/Dockerfile.j2 +++ b/docker/keystone/keystone-ssh/Dockerfile.j2 @@ -12,6 +12,13 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'openssh-server', 'rsync' ] %} + +{% if distro_package_manager == 'dnf' %} +# NOTE(mgoddard): The centos:8 image contains a /run/nologin file, which +# prevents SSH access to it. +RUN rm -f /run/nologin +{% endif %} + {% elif base_package_type == 'deb' %} {% set keystone_ssh_packages = [ 'openssh-server', |
