Skip to content
Extraits de code Groupes Projets
Valider 88451a1e rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

Add logstash public IP rule

parent 00e74e06
Branches
Étiquettes
Aucune requête de fusion associée trouvée
......@@ -30,6 +30,7 @@ Other variables that are used in this role (with default values in defaults/main
* dockremap_subuid : first subuid used for user namespace remap for Docker (defaults to 165536) - should be retrieved by docker_server role in host_vars
* dockremap_subgid : first subgid used for user namespace remap for Docker (defaults to 165536) - should be retrieved by docker_server role in host_vars
* logstash_port : port on which logstash server is listening for log collection (defaults to 5044)
* logstash_public_ip : logstash public ip address for log collection (defaults to 127.0.0.1)
* private_pull : whether a scheduled pulling of files via SFTP is to be performed on server (defaults to false)
......
......@@ -6,4 +6,5 @@ docker_userns_remap: true
dockremap_subuid: 165536
dockremap_subgid: 165536
logstash_port: 5044
logstash_public_ip: "127.0.0.1"
private_pull: false
......@@ -95,6 +95,7 @@
{% for host in groups.docker_elk %}
-A OUTPUT -d {{ hostvars[host].ansible_host }} -p tcp -m tcp --dport {{ logstash_port }} -j ACCEPT
{% endfor %}
-A OUTPUT -d {{ logstash_public_ip }} -p tcp -m tcp --dport {{ logstash_port }} -j ACCEPT
{% endif %}
{% if inventory_hostname in groups.odoo_server %}
# IMAP
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter