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
This commit is contained in:
parent
55e22b8cf7
commit
4942372886
@ -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',
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user