This repository was archived by the owner on Jan 8, 2019. It is now read-only.
File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 245
245
# jmxtrans-agent deploy location
246
246
default [ 'bcpc' ] [ 'jmxtrans_agent' ] [ 'lib_file' ] = '/usr/lib/jmxtrans_agent/jmxtrans-agent-1.2.5.jar'
247
247
default [ 'bcpc' ] [ 'jmxtrans_agent' ] [ 'lib_file_checksum' ] = 'd351ac0b863ffb2742477001296f65cbca6f8e9bb5bec3dc2194c447d838ae17'
248
+
249
+ # sshd_config
250
+ default [ 'bcpc' ] [ 'ssh' ] [ 'address_family' ] = 'inet'
251
+ default [ 'bcpc' ] [ 'ssh' ] [ 'x11_forwarding' ] = false
Original file line number Diff line number Diff line change 57
57
source 'sshd_config.erb'
58
58
mode 00644
59
59
notifies :restart , 'service[ssh]' , :immediately
60
- variables lazy { { listen_address : node [ :bcpc ] [ :management ] [ :ip ] } }
60
+ variables lazy { {
61
+ address_family : node [ 'bcpc' ] [ 'ssh' ] [ 'address_family' ] ,
62
+ listen_address : node [ :bcpc ] [ :management ] [ :ip ] ,
63
+ x11_forwarding : ( node [ 'bcpc' ] [ 'ssh' ] [ 'x11_forwarding' ] ? 'yes' : 'no' )
64
+ } }
61
65
62
66
# Don't rewrite the file unless we know the listen address is valid!
63
67
only_if {
Original file line number Diff line number Diff line change 8
8
Port 22
9
9
# Use these options to restrict which interfaces/protocols sshd will bind to
10
10
#ListenAddress ::
11
- ListenAddress <%= node[:bcpc][:management][:ip] %>
11
+ AddressFamily <%= @address_family %>
12
+ ListenAddress <%= @listen_address %>
12
13
13
14
Protocol 2
14
15
# HostKeys for protocol version 2
@@ -64,7 +65,7 @@ ChallengeResponseAuthentication no
64
65
#GSSAPIAuthentication no
65
66
#GSSAPICleanupCredentials yes
66
67
67
- X11Forwarding yes
68
+ X11Forwarding <%= @x11_forwarding %>
68
69
X11DisplayOffset 10
69
70
PrintMotd no
70
71
PrintLastLog yes
You can’t perform that action at this time.
0 commit comments