acaiafa / hosts_allow-cookbook

hosts-allow-cookbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hosts.allow Cookbook

License

Cookbook which configures the host.allow file.

Platforms

The following platforms are tested using Test Kitchen:

  • Ubuntu 12.04/14.04/16.04
  • CentOS (RHEL) 5/6/7

Basic Usage

The default recipe gives you the ability to pass attributes to tune your hosts.allow settings. There are currently no defaults in this cookbook so your regular distrobution provided hosts.allow file will remain intact. You can tweak the settings in the Policefile.rb or directly using attributes.

Recipe

node.default['host_allow']['hosts] = { 'ssh' => 'ALL', 'ntpd' => 'ALL'}

Policyfile

name 'host_allow'
default_source :community
cookbook 'host_allow', git: 'https://github.com/acaiafa/host-allow-cookbook'
run_list 'host_allow::default'

override['host_allow']['hosts] = { 'ssh' => 'ALL', 'ntpd' => 'ALL'}

About

hosts-allow-cookbook

License:Apache License 2.0


Languages

Language:Ruby 79.3%Language:HTML 20.7%