Build chef LWRP and manage OpenSSH server banner with Chef

Hi guys, in this article we will se how to build a small LWRP Chef cookbook..The final result will be: ssh_banner_banner “banner” do banner_file _banner_file sshd_config_file node[‘ssh_banner’][‘sshd_config_file’] paranoic_mode true action :create notifies :restart, “service[sshd]” end If “paranoic mode” is true, chef will change configuration file and restart sshd, but after 20 seconds (by default) it […]