Skip to content
Snippets Groups Projects
Commit da1ad3f6 authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
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
No related branches found
No related tags found
No related merge requests found
......@@ -6,5 +6,6 @@ ipv6_address: "2a01:4f8:173:1654::1"
ipv6_netmask: "/128"
ipv4_gateway: "138.201.206.65"
ipv6_gateway: "fe80::1"
default_qdisc: "fq"
tcp_congestion_control: "bbr"
filesystem: btrfs
......@@ -35,11 +35,24 @@
notify:
- restart networkd
- name: configure default qdisc
sysctl:
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
sysctl:
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment