Mercurial > code > home > repos > infra
comparison net.py @ 36:dc2100504c45
minor
author | drewp@bigasterisk.com |
---|---|
date | Sat, 15 Jan 2022 15:42:02 -0800 |
parents | 51c2f861764f |
children | fbd0849dfdbd |
comparison
equal
deleted
inserted
replaced
35:51c2f861764f | 36:dc2100504c45 |
---|---|
49 if is_wifi: | 49 if is_wifi: |
50 files.put(src="secrets/wpa_supplicant.conf", dest="/etc/wpa_supplicant/wpa_supplicant.conf") | 50 files.put(src="secrets/wpa_supplicant.conf", dest="/etc/wpa_supplicant/wpa_supplicant.conf") |
51 | 51 |
52 files.template(src="templates/house.network.j2", | 52 files.template(src="templates/house.network.j2", |
53 dest="/etc/systemd/network/99-house.network", | 53 dest="/etc/systemd/network/99-house.network", |
54 create_remote_dir=True, | |
54 mac=host.host_data['mac'], | 55 mac=host.host_data['mac'], |
55 addr=addr, | 56 addr=addr, |
56 gateway=gateway, | 57 gateway=gateway, |
57 dns=dns) | 58 dns=dns) |
58 systemd.service(service='systemd-networkd.service', running=True, restarted=True) | 59 systemd.service(service='systemd-networkd.service', running=True, restarted=True) |