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.8.0b1.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

maaspower-0.8.0b1-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file maaspower-0.8.0b1.tar.gz.

File metadata

  • Download URL: maaspower-0.8.0b1.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for maaspower-0.8.0b1.tar.gz
Algorithm Hash digest
SHA256 c771def80bb69baa4eb00d13fd65a72c3bededdd9452ada41badc7d314dff7e7
MD5 a0eeb59bbf964e146e9ae33c34266b8c
BLAKE2b-256 51fce948b6ee7ed878b49a2a7728ae41d01f5a5fed6cdcfbb6a981023f6f792a

See more details on using hashes here.

File details

Details for the file maaspower-0.8.0b1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for maaspower-0.8.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 03b7831e9427cad8ef0fa743b7ebf655f261f9307a0f69089ba7620441745d41
MD5 e36f7f184071e77135379daed43d8039
BLAKE2b-256 87cdf138b30c016310be1dc9f4acc3fd14ecd5777f2f88e075748a2bb76063dd

See more details on using hashes here.

Supported by

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