From bf858a82bf32d8bd4985d876ead5e970dd6bdc6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Fele-=C5=BDor=C5=BE?= Date: Mon, 20 Apr 2026 11:45:46 +0200 Subject: [PATCH] Enable nvued, tell it to ignore most config files --- roles/fabric/tasks/main.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/roles/fabric/tasks/main.yml b/roles/fabric/tasks/main.yml index e0f9c30..155cefd 100644 --- a/roles/fabric/tasks/main.yml +++ b/roles/fabric/tasks/main.yml @@ -8,14 +8,37 @@ regexp: '^127.0.1.1\s+' line: "127.0.1.1 {{ inventory_hostname }}" +- name: Tell nvue to leave configuration files alone + shell: "nv set system config apply ignore {{ item }}" + loop: + - /etc/cumulus/ports.conf + - /etc/default/isc-dhcp-relay-default + - /etc/dhcp/dhcpd.conf + - /etc/frr/daemons + - /etc/frr/frr.conf + - /etc/hosts + - /etc/passwd + - /etc/passwd- + - /etc/shadow + - /etc/shadow- + - /etc/hostname + - /etc/network/interfaces + - /etc/resolv.conf + +- name: Enable QoS using nv + shell: "nv set qos roce" + +- name: Apply nvued config + shell: "nv config apply" + - name: Disable unneeded services service: name: '{{ item }}' enabled: false state: stopped loop: - - nvued - - nvue-startup + # - nvued + # - nvue-startup - netqd@mgmt - snmpd