/srv/irclogs.ubuntu.com/2021/10/12/#netplan.txt

=== tomreyn_ is now known as tomreyn
=== ginggs_ is now known as ginggs
mathsboyhey I'm trying to help someone build a second network to a set of servers using netplan for the config. The config file is saved as /etc/netplan/00-config.yaml. My question is whether this filename should be something else? I have had a quick read of the docs and it seems like it should just be called config.yaml, otherwise the network won't persist after reboot. Is that correct?14:26
mathsboyoh wait, no...  *.yaml is considered14:27
slyonrigh. any *.yaml is accepted, where higher name overrides the lower name14:30
mathsboyhmm, so any ideas where I should look to figure out why the config doesn't load after rebooting? It works fine if I netplan apply, but I'd like it to start automatically...15:35
slyonmathsboy: does "netplan --debug apply" give any hints?15:36
slyonmaybe you could share/pastebin your YAML config somewhere so we can have a look at it?15:36
slyondo you see netplan configuration files generated after boot in /run/systemd/network and/or /run/NetworkManager/system-connections ?15:37
mathsboyoh good questions... I will check and come back15:58
mathsboyokay! it has a permission denied15:59
mathsboywhenn it tries to create the file in /etc/systemd16:00
mathsboysorry run/systemd/network16:00
slyonthe netplan generator should run as root during bootup. otherwise your system might be utterly broken..16:15
mathsboyyeah, utterly broken wouldn't be a huge surprise at this point. Here's a pastebin with the config and output of --debug apply: https://pastebin.com/p2ikcWhH16:25

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!