Enable nvued, tell it to ignore most config files
This commit is contained in:
parent
c04538d4f6
commit
bf858a82bf
1 changed files with 25 additions and 2 deletions
|
|
@ -8,14 +8,37 @@
|
||||||
regexp: '^127.0.1.1\s+'
|
regexp: '^127.0.1.1\s+'
|
||||||
line: "127.0.1.1 {{ inventory_hostname }}"
|
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
|
- name: Disable unneeded services
|
||||||
service:
|
service:
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
enabled: false
|
enabled: false
|
||||||
state: stopped
|
state: stopped
|
||||||
loop:
|
loop:
|
||||||
- nvued
|
# - nvued
|
||||||
- nvue-startup
|
# - nvue-startup
|
||||||
- netqd@mgmt
|
- netqd@mgmt
|
||||||
- snmpd
|
- snmpd
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue