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.0.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.0-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for maaspower-0.9.0.tar.gz
Algorithm Hash digest
SHA256 1c3d4f05c1a23485c42023c29562d4fcfcd441cfc195aad65c1d7b28ac9df620
MD5 ff620b68da7f7b943f2bb3f3671d51b8
BLAKE2b-256 52c40ea726355e2595861c1c32a3f2baa06ce55269cf2225f19cf0ce2c4d8870

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for maaspower-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a3656ea756bc35533a5e8dc97ff5d49af10358b34e064359fca9f8ed44dd16c
MD5 dd63c9046475638bf9bb84676540e255
BLAKE2b-256 3c3bfeb3a5ec843e56a97f3e0af30683d21f39d0ad2ed9133b8c4733219ed1ee

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