From 49423728869c55841ce2b6a82e7f0ee0227e0d17 Mon Sep 17 00:00:00 2001 From: Mikhail S Medvedev Date: Mon, 18 Jan 2016 14:12:28 -0600 Subject: [PATCH] Fix regex in NoRoaming workaround The * needs escaping. Otherwise all lines starting with Host would match, resulting in puppet apply error: Error: 5 lines match pattern '^Host *' in file '/etc/ssh/sshd_config'. One or no line must match the pattern. Change-Id: I4f2d3c82294c8de1439e84c0e2d1c6b5c19bc0d2 --- modules/openstack_project/manifests/template.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/manifests/template.pp b/modules/openstack_project/manifests/template.pp index 51fc6d3c13..3964a63914 100644 --- a/modules/openstack_project/manifests/template.pp +++ b/modules/openstack_project/manifests/template.pp @@ -272,7 +272,7 @@ class openstack_project::template ( } file_line { 'ensure NoRoaming for ssh clients': - after => '^Host *', + after => '^Host \*', path => '/etc/ssh/ssh_config', line => ' UseRoaming no', }