Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@binford2k
Created April 3, 2017 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save binford2k/e11ffade96e2dc375371ae0f12ebff0e to your computer and use it in GitHub Desktop.
Save binford2k/e11ffade96e2dc375371ae0f12ebff0e to your computer and use it in GitHub Desktop.
['192.168.1.24','192.168.1.25'].each |$ipaddress| {
firewall_rule { "Allow HTTP access to ${ipaddress}":
source_ip = $ipaddress,
destination_port = 80,
protocol = 'tcp',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment