Files
packstack/packstack/puppet/templates/firewall.pp
Ivan Chavero 768ee0d856 Fixes errors when nova is disabled
This patch checks if nova is disabled in some
plugins so we can run packstack with
CONFIG_NOVA_INSTALL=n

Added also an ALL option to the firewall
template.

Change-Id: I05a9bd55c89d4009e28307248d74624533d47240
Fixes: rhbz#987888 rhbz#1024564 rhbz#1026795
2013-12-04 21:05:40 -07:00

20 lines
468 B
Puppet

# Create firewall rules to allow only the hosts that need to connect
# to %(FIREWALL_SERVICE_NAME)s
$hosts = [ %(FIREWALL_ALLOWED)s ]
define add_allow_host {
$source = $title ? {
'ALL' => '0.0.0.0/0',
default => $title,
}
firewall { "001 %(FIREWALL_SERVICE_NAME)s incoming ${title}":
proto => 'tcp',
dport => [%(FIREWALL_PORTS)s],
action => 'accept',
source => $source,
}
}
add_allow_host {$hosts:}