cookbook 'ipset', '= 0.2.1'
ipset (4) Versions 0.2.1 Follow1
Installs/Configures ipset on Linux
cookbook 'ipset', '= 0.2.1', :supermarket
knife supermarket install ipset
knife supermarket download ipset
Description
Installs and configures ipset on
Linux. Based on the iptables
cookbook from Opscode.
Supported Platforms
Debian / Ubuntu only at the moment.
Usage
Include ipset
in your node's run_list
to ensure ipset
is
installed and the rebuild-ipset
script is on the system. The
ipset
LWRP will then be available:
ipset "some-nets" do type "hash:net" action :create entries( "127.1.0.0/16" => { comment: "local-net", nomatch: true, }, "127.2.0.0/16" => { comment: "other-net", nomatch: false, }, ) end ipset 'custom-set' do source 'my_set.erb' cookbook 'ipset_test' options maxelem: 4096 action :create end
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
0.2.1
Add flush
command to generated save file. Otherwise, the destroy
command can fail with nested lists. This is actually a more general
problem that needs to be fixed by creating temporary sets and swaping
them with the existing ones during an update.
0.2.0
Remove ipset_entry
LWRP. Entries are now passed in a hash directly
to the ipset
resource.
0.1.0
Initial release of ipset
Foodcritic Metric
0.2.1 failed this metric
FC031: Cookbook without metadata file: /tmp/cook/e33ea4a5b3945a2493a8c16e/ipset/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/e33ea4a5b3945a2493a8c16e/ipset/metadata.rb:1
0.2.1 failed this metric
FC045: Consider setting cookbook name in metadata: /tmp/cook/e33ea4a5b3945a2493a8c16e/ipset/metadata.rb:1