aboutsummaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorLUXEY Adrien <adrien.luxey@inria.fr>2021-03-23 17:05:56 +0100
committerLUXEY Adrien <adrien.luxey@inria.fr>2021-03-23 17:05:56 +0100
commit7277927ea31ea66f1a3b186423ba59fac2d30d0f (patch)
tree896d1d41b829da02bf5bf7af485d202328f99225 /os
parent7852eef5a6d0eefc5914f178549f6845857a5c49 (diff)
downloadinfrastructure-7277927ea31ea66f1a3b186423ba59fac2d30d0f.tar.gz
infrastructure-7277927ea31ea66f1a3b186423ba59fac2d30d0f.zip
WIP: Ansible config updated, everything passed alright
Diffstat (limited to 'os')
-rw-r--r--os/config/roles/network/templates/rules.v44
-rw-r--r--os/config/roles/network/templates/rules.v62
2 files changed, 3 insertions, 3 deletions
diff --git a/os/config/roles/network/templates/rules.v4 b/os/config/roles/network/templates/rules.v4
index 83f5348..8ccaed7 100644
--- a/os/config/roles/network/templates/rules.v4
+++ b/os/config/roles/network/templates/rules.v4
@@ -7,10 +7,10 @@
-A INPUT -p icmp -j ACCEPT
# Administration
--A INPUT -p tcp --dport {{ hostvars[selected_host]['ssh_port'] }} -j ACCEPT
+-A INPUT -p tcp --dport {{ ssh_port }} -j ACCEPT
# Diplonat needs everything open to communicate with IGD with the router
--A INPUT -s {{ hostvars[selected_host]['gatewayv4'] }} -j ACCEPT
+-A INPUT -s {{ gatewayv4 }} -j ACCEPT
# Cluster
{% for selected_host in groups['cluster_nodes'] %}
diff --git a/os/config/roles/network/templates/rules.v6 b/os/config/roles/network/templates/rules.v6
index eace08e..6977f02 100644
--- a/os/config/roles/network/templates/rules.v6
+++ b/os/config/roles/network/templates/rules.v6
@@ -13,7 +13,7 @@
-A INPUT -p ipv6-icmp -j ACCEPT
# Administration
--A INPUT -p tcp --dport {{ hostvars[selected_host]['ssh_port'] }} -j ACCEPT
+-A INPUT -p tcp --dport {{ ssh_port }} -j ACCEPT
# Cluster
{% for selected_host in groups['cluster_nodes'] %}