Indent nftables sets literals

This commit is contained in:
jeltz 2021-03-10 09:43:31 +01:00
parent f24a3e1d29
commit 6dabcb0966

View file

@ -3,45 +3,73 @@
## Interconnexion ## Interconnexion
# Réseaux d'interconnexion # Réseaux d'interconnexion
define interco_v4 = { {{ nftables_interco_v4 | join(", ") }} } define interco_v4 = {
define interco_v6 = { {{ nftables_interco_v6 | join(", ") }} } {{ nftables_interco_v4 | join(",\n") | indent }}
}
define interco_v6 = {
{{ nftables_interco_v6 | join(",\n") | indent }}
}
## Administration ## Administration
# Réseaux d'administration # Réseaux d'administration
define adm_v4 = { {{ nftables_adm_v4 | join(", ") }} } define adm_v4 = {
define adm_v6 = { {{ nftables_adm_v6 | join(", ") }} } {{ nftables_adm_v4 | join(",\n") | indent }}
}
define adm_v6 = {
{{ nftables_adm_v6 | join(",\n") | indent }}
}
# Serveurs de centralisation des journaux # Serveurs de centralisation des journaux
define syslog_adm_v4 = { 10.128.0.51 } define syslog_adm_v4 = { 10.128.0.51 }
define syslog_adm_v6 = { 2a09:6840:128::251 } define syslog_adm_v6 = { 2a09:6840:128::251 }
# Adresses des bastions autorisés # Adresses des bastions autorisés
define bastions_v4 = { {{ nftables_bastions_v4 | join(", ") }} } define bastions_v4 = {
define bastions_v6 = { {{ nftables_bastions_v6 | join(", ") }} } {{ nftables_bastions_v4 | join(",\n") | indent }}
}
define bastions_v6 = {
{{ nftables_bastions_v6 | join(",\n") | indent }}
}
## Services ## Services
# Réseaux de services privés # Réseaux de services privés
define svc_v4 = { {{ nftables_svc_v4 | join(", ") }} } define svc_v4 = {
define svc_v6 = { {{ nftables_svc_v6 | join(", ") }} } {{ nftables_svc_v4 | join(",\n") | indent }}
}
define svc_v6 = {
{{ nftables_svc_v6 | join(",\n") | indent }}
}
## Adhérents ## Adhérents
# Réseaux des adhérents # Réseaux des adhérents
define members_v4 = { {{ nftables_members_v4 | join(", ") }} } define members_v4 = {
define members_v6 = { {{ nftables_members_v6 | join(", ") }} } {{ nftables_members_v4 | join(",\n") | indent }}
}
define members_v6 = {
{{ nftables_members_v6 | join(",\n") | indent }}
}
# Sous-réseau d'inscription des adhérents # Sous-réseau d'inscription des adhérents
define signup_v4 = { {{ nftables_signup_v4 | join(", ") }} } define signup_v4 = {
define signup_v6 = { {{ nftables_signup_v6 | join(", ") }} } {{ nftables_signup_v4 | join(",\n") | indent }}
}
define signup_v6 = {
{{ nftables_signup_v6 | join(",\n") | indent }}
}
# Hôtes déclencheurs d'accès à Internet pour inscription # Hôtes déclencheurs d'accès à Internet pour inscription
define signup_triggers_v4 = { {{ nftables_signup_triggers_v4 | join(", ") }} } define signup_triggers_v4 = {
define signup_triggers_v6 = { {{ nftables_signup_triggers_v6 | join(", ") }} } {{ nftables_signup_triggers_v4 | join(",\n") | indent }}
}
define signup_triggers_v6 = {
{{ nftables_signup_triggers_v6 | join(",\n") | indent }}
}
## NAT ## NAT