While this is designed to work with openQA, this service has not dependencies to openQA. However, it may be of limited use without being used with an openQA instance.
Prior to doing anyting. some preparation is needed:
git clone https://github.com/frankenmichl/ipxe_http.git
cd ipxe_http
virtualenv virtualenv
make init
To start the server, just run pythin server.py
.
Hit C-c to exit.
Running the unit tests is easy.
make test
You get a coverage report, this should show 100% coverage. If you want to see more information, just run
coverage html
and open the report in your browser.
All parameters in this documentation are surrounded by <>.
- GET Returns the bootscript for the host issuing the GET request
- GET Return the bootscript for the host with IP address
- POST set the bootscript for the host with IP address
- GET take the lock if possible. If the host is already locked, HTTP status 412 is returned
- PUT free the lock. If it is not locked, HTTP status 412 signals the error.
- GET retrieve the lock status of . Returned in the body as locked or unlocked