Merge tmakinen/puppet
Conflicts: dovecot/manifests/init.pp libvirt/manifests/init.pp munin/manifests/init.pp puppet/manifests/init.pp tftp/manifests/init.pp
This commit is contained in:
commit
98767cfb2a
45 changed files with 5517 additions and 156 deletions
|
@ -17,6 +17,11 @@
|
|||
#
|
||||
# $firewall_custom = [ "pass in quick carp", ]
|
||||
#
|
||||
# Loading of extra modules is supported on centos. For example FTP
|
||||
# support for iptables:
|
||||
#
|
||||
# $firewall_modules = [ "nf_conntrack_ftp", ]
|
||||
|
||||
class firewall {
|
||||
|
||||
if ! $firewall_custom {
|
||||
|
@ -117,6 +122,14 @@ class firewall::common::iptables {
|
|||
hasrestart => true,
|
||||
require => Package["iptables"],
|
||||
}
|
||||
if $firewall_modules {
|
||||
$firewall_modules_str = inline_template('<%= @firewall_modules.join(" ") -%>')
|
||||
augeas { "iptables-config":
|
||||
context => "/files/etc/sysconfig/iptables-config",
|
||||
changes => [ "set IPTABLES_MODULES '${firewall_modules_str}'" ],
|
||||
notify => Service["iptables"],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue