mirror of https://github.com/Icinga/icinga2.git
Vagrant: Use lokkit to manage the firewall rules.
This commit is contained in:
parent
bde4f112ad
commit
a514d0d97f
|
@ -94,7 +94,7 @@ package { 'icinga-web':
|
|||
# enable http 80
|
||||
exec { 'iptables-allow-http':
|
||||
unless => 'grep -Fxqe "-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT" /etc/sysconfig/iptables',
|
||||
command => 'iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT && iptables-save > /etc/sysconfig/iptables'
|
||||
command => 'lokkit --enabled --service=http'
|
||||
}
|
||||
|
||||
# icinga 2 docs at /icinga2-doc
|
||||
|
|
Loading…
Reference in New Issue