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.2

LWRP for configuring ssh-banner

Policyfile
Berkshelf
Knife
cookbook 'ssh_banner', '~> 0.1.2', :supermarket
cookbook 'ssh_banner', '~> 0.1.2'
knife supermarket install ssh_banner
knife supermarket download ssh_banner
README
Dependencies
Changelog
Quality 17%

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

Collaborator Number Metric
            

0.1.2 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.1.2 failed this metric

FC064: Ensure issues_url is set in metadata: ssh_banner/metadata.rb:1
FC065: Ensure source_url is set in metadata: ssh_banner/metadata.rb:1
FC066: Ensure chef_version is set in metadata: ssh_banner/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: ssh_banner/metadata.rb:1
FC069: Ensure standardized license defined in metadata: ssh_banner/metadata.rb:1
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssh_banner/providers/banner.rb:11
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssh_banner/providers/banner.rb:45
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssh_banner/providers/banner.rb:50
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssh_banner/providers/banner.rb:55
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssh_banner/providers/banner.rb:70
FC085: Resource using new_resource.updated_by_last_action to converge resource: ssh_banner/providers/banner.rb:73
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.1.2 passed this metric

Testing File Metric
            

0.1.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number