Skip to main content

Power control webhook server for Canonical's MAAS

Project description

CI Coverage PyPI License

maaspower

Power control webhook server for Canonical's MAAS.

The requirements for such webhooks are defined here:

Source https://github.com/gilesknap/maaspower
PyPI pip install maaspower
Docker docker run ghcr.io/gilesknap/maaspower:latest
Documentation https://gilesknap.github.io/maaspower
Releases https://github.com/gilesknap/maaspower/releases

This project implements MAAS power control for machines that do not already have a BMC type supported by MAAS. It uses webhooks to control any number of remote switching devices that can power cycle such machines.

The project uses an extensible architecture so more switching device types may be added, see add_api.

At present it supports two flavours of switching control:

  • Command line interface. Anything that is controllable by a command line utility that can be installed on the machine running this webhook service.
  • SmartThings API: a popular Samsung IoT protocol that is supported by thousands of devices
  • Web UI controlled devices - uses selenium to connect to the web UI and control the device. A basic DSL describes the UI fields to scrape.
  • Cisco IOS PoE Switches
from maaspower import __version__

print(f"Hello maaspower {__version__}")

Or if it is a commandline tool then you might put some example commands here:

python -m maaspower --version

See https://gilesknap.github.io/maaspower for more detailed documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maaspower-0.9.1.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maaspower-0.9.1-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file maaspower-0.9.1.tar.gz.

File metadata

  • Download URL: maaspower-0.9.1.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for maaspower-0.9.1.tar.gz
Algorithm Hash digest
SHA256 6d679b7345b6019363f994d7556375dac6be14adc703fac1d69a128eab4256c3
MD5 e6aa9101165603b88561c851e608e87e
BLAKE2b-256 a96d3589f18539fca2fe60429a599bab47d322323e00bcbd0ae0ddc974d609ba

See more details on using hashes here.

File details

Details for the file maaspower-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: maaspower-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for maaspower-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 057d73806678b7aaf696a550438d7dd6fd536f3fc0bce1346458d79f93269e31
MD5 d4b92d5273a38aa17c1f7ff63fe07cca
BLAKE2b-256 8ad591f8e4531db238ee5872db60d5e03a9e84abed8572c1380ba362b69dcea9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page