Created
August 29, 2014 09:45
-
-
Save jp/751b8adbe0d08e4ec185 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open iptables for each node | |
iptables_ng_rule 'cluster' do | |
name '01-cluster-access' | |
chain 'INPUT' | |
rule search(:node,"chef_environment:#{node.chef_environment}").map {|node| "--source #{node[:ipaddress]} --jump ACCEPT" } | |
ip_version 4 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment