aboutsummaryrefslogtreecommitdiff
path: root/docker/keystone/keystone-ssh
diff options
context:
space:
mode:
authorMohammed Naser <mnaser@vexxhost.com>2017-03-14 20:09:58 -0400
committerMohammed Naser <mnaser@vexxhost.com>2017-03-15 14:24:39 -0400
commitb68bdabbb45c3be69ec7d6ee3f93b9cdbb95c4a0 (patch)
treef5d287fea68fd45c6e4d495003303c2c68e57fb1 /docker/keystone/keystone-ssh
parent6d1f01b100cb39cc1ce01ea6895a509a8fecf07a (diff)
downloadkolla-b68bdabbb45c3be69ec7d6ee3f93b9cdbb95c4a0.tar.gz
kolla-b68bdabbb45c3be69ec7d6ee3f93b9cdbb95c4a0.zip
Refactor and enable shell access
When installing from binary, packaging tools create a user for Keystone which does not have a shell. This results in fernet token operations failing due to the fact that `rsync` cannot connect over SSH because the Keystone user cannot login. This patch addresses this issue by enabling shell access to the Keystone user, it also refactors the Nova SSH controller to use the pre-existing macro. Change-Id: Ic753a94311c5d7d72a82d91c1279dfe982e9afbd Related-Bug: #1617902
Diffstat (limited to 'docker/keystone/keystone-ssh')
-rw-r--r--docker/keystone/keystone-ssh/Dockerfile.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/keystone/keystone-ssh/Dockerfile.j2 b/docker/keystone/keystone-ssh/Dockerfile.j2
index 51314cdc8..2f919fe9c 100644
--- a/docker/keystone/keystone-ssh/Dockerfile.j2
+++ b/docker/keystone/keystone-ssh/Dockerfile.j2
@@ -5,6 +5,8 @@ MAINTAINER {{ maintainer }}
{% import "macros.j2" as macros with context %}
+{{ macros.configure_user(name='keystone', shell='/bin/bash') }}
+
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set keystone_ssh_packages = [
'openssh-server',