From 1fe56e8129f68d237e2fb4928925262444991f45 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Fri, 14 Sep 2018 14:42:55 -0600 Subject: [PATCH] Ensure that SSHD is installed, enabled and running The keystone containers rely on SSHD for the key synchronisation, so in this patch we ensure that it is installed, enabled and running. Change-Id: I044c080dba1068f79f4018b54b8ad120192b3932 --- tasks/keystone_post_install.yml | 8 ++++++++ vars/redhat-7.yml | 1 + vars/suse.yml | 1 + vars/ubuntu.yml | 1 + 4 files changed, 11 insertions(+) diff --git a/tasks/keystone_post_install.yml b/tasks/keystone_post_install.yml index 24a14249..13b621fe 100644 --- a/tasks/keystone_post_install.yml +++ b/tasks/keystone_post_install.yml @@ -13,6 +13,14 @@ # See the License for the specific language governing permissions and # limitations under the License. +- name: Enable SSHD + systemd: + name: sshd + state: started + enabled: yes + masked: no + daemon_reload: yes + - name: Generate the keystone system user ssh key user: name: "{{ keystone_system_user_name }}" diff --git a/vars/redhat-7.yml b/vars/redhat-7.yml index 5bcbd36e..f56d20f0 100644 --- a/vars/redhat-7.yml +++ b/vars/redhat-7.yml @@ -18,6 +18,7 @@ keystone_distro_packages: - cronie - cronie-anacron - git + - openssh-server - rsync keystone_devel_distro_packages: diff --git a/vars/suse.yml b/vars/suse.yml index c16e4af3..65c337d7 100644 --- a/vars/suse.yml +++ b/vars/suse.yml @@ -18,6 +18,7 @@ keystone_distro_packages: - ca-certificates - cronie - git-core + - openssh - rsync keystone_devel_distro_packages: diff --git a/vars/ubuntu.yml b/vars/ubuntu.yml index 0bf168ea..ef0bb2c2 100644 --- a/vars/ubuntu.yml +++ b/vars/ubuntu.yml @@ -15,6 +15,7 @@ keystone_distro_packages: - git + - openssh-server - rsync keystone_devel_distro_packages: