Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

ssh_banner (3) Versions 0.1.1

LWRP for configuring ssh-banner

Policyfile
Berkshelf
Knife
cookbook 'ssh_banner', '= 0.1.1', :supermarket
cookbook 'ssh_banner', '= 0.1.1'
knife supermarket install ssh_banner
knife supermarket download ssh_banner
README
Dependencies
Changelog
Quality -%

Attributes

 default['ssh_banner']['sshd_config_file']  = "/etc/ssh/sshd_config"
 default['ssh_banner']['sshd_init_service'] = "/etc/init.d/sshd"
 default['ssh_banner']['sshd']['service'] = "sshd"
 default['ssh_banner']['sshd_banner_file'] = "chef_ssh_banner"
 default['ssh_banner']['paranoic_mode_time'] = 20
 default['ssh_banner']['sshd_banner_dir'] = "/etc/ssh"

Usage

Customize your banner

copy and paste the banner here => /files/default/chef_ssh_banner

ssh-banner::default

Add banner in paranoid mode.

using paranoid mode, chef will replace sshd_config with your new banner and will do a rollback of configuration after node[‘ssh_banner']['paranoic_mode_time'] seconds.
ruby
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

Add new banner (normal mode):

 ssh_banner_banner  "banner" do
   banner_file _banner_file
   sshd_config_file  node['ssh_banner']['sshd_config_file']
   paranoic_mode false
   action :create
   notifies :restart, "service[sshd]"
 end

Delete banner:

 ssh_banner_banner  "banner" do 
   banner_file _banner_file
   sshd_config_file  node['ssh_banner']['sshd_config_file']
   paranoic_mode false
   action :delete
   notifies :restart, "service[sshd]"
 end

Author

Author:: Eugenio Marzo (eugenio.marzo@yahoo.it)

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

0.1.0

Initial release of ssh-banner

No quality metric results found