From ba0adb9b5100735358a76fdee7b251dba224a4cd Mon Sep 17 00:00:00 2001 From: Jim Gorz Date: Fri, 23 Sep 2016 09:57:00 -0700 Subject: Fix sshd restarts for rhel distros. Set the default value for 'ssh_svcname' in rhel distros. This means that it no longer needs to be set in system_info config. --- cloudinit/distros/rhel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cloudinit/distros/rhel.py b/cloudinit/distros/rhel.py index 1aa42d75..e574e1b9 100644 --- a/cloudinit/distros/rhel.py +++ b/cloudinit/distros/rhel.py @@ -62,6 +62,7 @@ class Distro(distros.Distro): self._runner = helpers.Runners(paths) self.osfamily = 'redhat' self._net_renderer = sysconfig.Renderer() + cfg['ssh_svcname'] = 'sshd' def install_packages(self, pkglist): self.package_command('install', pkgs=pkglist) -- cgit v1.2.3