Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymzh committed Nov 1, 2019
1 parent 58794fe commit 250f8a9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cookbooks/fb_ssh/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,24 @@
end
end

template '/tmp/sshd_config' do
source 'ssh_config.erb'
owner 'root'
group 'root'
mode '0644'
variables({ :type => 'sshd_config' })
end

ruby_block 'debug' do
block do
puts ::File.read('/tmp/sshd_config')
s = Mixlib::ShellOut.new('/usr/sbin/sshd -t -f /tmp/sshd_config')
s.run_command
puts s.stdout
puts s.stderr
end
end

template '/etc/ssh/sshd_config' do
source 'ssh_config.erb'
owner 'root'
Expand Down

0 comments on commit 250f8a9

Please sign in to comment.