daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jul 15th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. define mysqld::firewall::instance (
  2. )  
  3.  
  4.     include iptables
  5.  
  6.     # Set the defaults for each iptables::filter entry
  7.     Iptables::Filter{
  8.         dport    => '3306',
  9.         state    => 'new',
  10.         protocol => 'tcp'
  11.     }
  12.  
  13.     $name_lc = inline_template('<%= name.downcase -%>')
  14.  
  15.     # create an iptables::filter entry for each source chain that requires access
  16.     iptables::filter{ "1300-mysqld-$name_lc" : jump => $name }
  17.  
  18. }
  19.  
  20. Called like this:
  21.  
  22. $sources = ['FOO', 'BAR'], where FOO and BAR are pre-defined iptables "jumps"
  23. mysqld::firewall::instance { $sources: }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top