Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kairen/maas-wakeonlan-driver

Patch the WoL Driver in MAAS 2.2+
https://github.com/kairen/maas-wakeonlan-driver

maas wol-driver

Last synced: about 2 months ago
JSON representation

Patch the WoL Driver in MAAS 2.2+

Awesome Lists containing this project

README

        

# Ubuntu MAAS 2.2+ Wake on LAN Driver Patch
The WoL driver has indeed been removed from MAAS 2.0, but I need the WoL driver to test some problems. I find one way from [Using Wake on LAN with MAAS 2.x](https://stgraber.org/2017/04/02/using-wake-on-lan-with-maas-2-x/), but this way can't solve on MASS 2.2+, so I modified the some code to provider the WoL Driver.

Requirement:
* Install the wakeonlan tool on MAAS Server.
* MAAS v2.2+.

> The driver has been tested on MAAS 2.3.3.

Start to patch the WoL driver as below:
```sh
$ sudo apt-get install -y wakeonlan
$ git clone https://github.com/kairen/maas-wakeonlan-driver.git
$ cd maas-wakeonlan-driver
$ PATCH_DIR="/usr/lib/python3/dist-packages/provisioningserver/"
$ sudo patch -p1 -d ${PATCH_DIR} < maas-wol.diff
$ sudo systemctl restart maas-rackd.service maas-regiond.service
```

![](snapshot/wol.png)