Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions manifests/elasticsearch.pp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
before => Class['elasticsearch']
}

realize Firewall['600 accept elasticsearch http traffic']
realize Firewall['600 accept elasticsearch cluster traffic']

$es_config = {
'network.host' => [ "${::ipaddress_eth0}", "127.0.0.1" ],
'http.cors.enabled' => true,
Expand Down
12 changes: 12 additions & 0 deletions manifests/firewall/rules.pp
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,16 @@
dport => '2003',
action => 'accept'
}

@firewall { '600 accept elasticsearch http traffic':
proto => 'tcp',
dport => '9200',
action => 'accept'
}

@firewall { '600 accept elasticsearch cluster traffic':
proto => 'tcp',
dport => '9300',
action => 'accept'
}
}