Ignore SendEnv LC_* from ssh clients of master
If ssh client will send his Languange to server. They will be accepted and in some cases it can cause breaking of python code. To avoid unintended language settings let's ignore them. Change-Id: Iabee9ef57244ea37972af16b1315118c349c30ac Closes-bug: #1573638
This commit is contained in:
parent
8e9f3252a2
commit
7b904d2f3b
|
@ -132,6 +132,7 @@ class { 'osnailyfacter::atop': }
|
|||
class { 'osnailyfacter::ssh':
|
||||
password_auth => 'yes',
|
||||
listen_address => ['0.0.0.0'],
|
||||
accept_env => '# LANG LC_*',
|
||||
}
|
||||
|
||||
class { 'fuel::iptables':
|
||||
|
|
|
@ -34,6 +34,7 @@ class osnailyfacter::ssh(
|
|||
$log_lvl = 'VERBOSE',
|
||||
$password_auth = 'no',
|
||||
$listen_address = [],
|
||||
$accept_env = 'LANG LC_*',
|
||||
){
|
||||
|
||||
case $::osfamily {
|
||||
|
@ -69,6 +70,7 @@ class osnailyfacter::ssh(
|
|||
'RSAAuthentication' => 'yes',
|
||||
'UsePrivilegeSeparation' => 'yes',
|
||||
'StrictModes' => 'yes',
|
||||
'AcceptEnv' => $accept_env,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -71,6 +71,7 @@ describe manifest do
|
|||
parameters = {
|
||||
:password_auth => 'yes',
|
||||
:listen_address => ['0.0.0.0'],
|
||||
'accept_env' => '# LANG LC_*',
|
||||
}
|
||||
is_expected.to contain_class('osnailyfacter::ssh').with parameters
|
||||
end
|
||||
|
|
|
@ -50,7 +50,9 @@ describe manifest do
|
|||
|
||||
it 'should declare tools classes' do
|
||||
should contain_class('osnailyfacter::atop')
|
||||
should contain_class('osnailyfacter::ssh')
|
||||
should contain_class('osnailyfacter::ssh').with(
|
||||
'accept_env' => 'LANG LC_*',
|
||||
)
|
||||
should contain_class('osnailyfacter::puppet_pull').with(
|
||||
'modules_source' => puppet['modules'],
|
||||
'manifests_source' => puppet['manifests']
|
||||
|
|
Loading…
Reference in New Issue