Commit da1ad3f6 authored by Evangelos Foutras's avatar Evangelos Foutras 🐱
Browse files

common: allow configuring default qdisc

BBR needs to be used with the fq qdisc, so allow configuring the default
qdisc and set it to "fq" on soyuz (switched to BBR in a previous commit).
parent b87ed98c
......@@ -6,5 +6,6 @@ ipv6_address: "2a01:4f8:173:1654::1"
ipv6_netmask: "/128"
ipv4_gateway: ""
ipv6_gateway: "fe80::1"
default_qdisc: "fq"
tcp_congestion_control: "bbr"
filesystem: btrfs
......@@ -35,11 +35,24 @@
- restart networkd
- name: configure default qdisc
name: net.core.default_qdisc
value: "{{default_qdisc}}"
sysctl_file: /etc/sysctl.d/net.conf
when: default_qdisc is defined
- name: apply default qdisc to interfaces
command: tc qdisc replace dev {{item}} root {{default_qdisc}}
with_items: "{{ansible_interfaces | difference('lo')}}"
when: default_qdisc is defined
- name: configure tcp congestion control algorithm
name: net.ipv4.tcp_congestion_control
value: "{{tcp_congestion_control}}"
sysctl_file: /etc/sysctl.d/local.conf
sysctl_set: yes
sysctl_file: /etc/sysctl.d/net.conf
when: tcp_congestion_control is defined
- name: configure journald
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment