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

Uploaded Python 3

File details

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

File metadata

  • Download URL: maaspower-0.8.0b2.tar.gz
  • Upload date:
  • Size: 3.6 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.0b2.tar.gz
Algorithm Hash digest
SHA256 61777840e37c74e88d26b829b8e9c476c3e4f4a7271d8cdc825dc523dd5c02f3
MD5 57cf204be70fbec29e777b2f8cee1ce8
BLAKE2b-256 16ef4d4d2b4cdf518cc28f7a13c6e5e1ca72de875d3df27b8fd97fa80fb756f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maaspower-0.8.0b2-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.3

File hashes

Hashes for maaspower-0.8.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 ece231860a7ed92a5430242159bfd3af451b0ab570eec3da19be43a27cc17ffb
MD5 4149ec12da39501f39479698b07a0b7e
BLAKE2b-256 e44bb0fba10b6f9fcff8453873d82674909420126d5a00041af585100f6e8db4

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