From 7e36aa1432f4288015c23e98d44962f2dcc99e11 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Fri, 8 Jan 2021 10:09:34 +0000 Subject: [PATCH] Add wakeonlan support for my hypervisors --- user-data.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/user-data.yaml b/user-data.yaml index 77baa87..1be417c 100644 --- a/user-data.yaml +++ b/user-data.yaml @@ -84,6 +84,15 @@ write_files: dd if=/dev/zero of=/dev/sda bs=1M count=1000 permissions: '0755' owner: root:root + - path: /etc/netplan/99-custom.yaml + content: | + network: + version: 2 + ethernets: + enp1s0: + wakeonlan: true + permissions: '0644' + owner: root:root # Runs any command that we need to run post install runcmd: @@ -91,3 +100,4 @@ runcmd: - [ "rm", "/root/install_kvm.sh" ] - [ "/root/initial_setup.sh" ] - [ "rm", "/root/initial_setup.sh" ] + - [ "netplan", "apply" ]