Skip to main content

The @lxd connector allows you to run commands on LXD containers on a remote machine (via SSH).

Project description

pyinfra-lxd-connector

Add an @lxd connector for pyinfra. It allows to run commands on LXD containers on a remote machine (via SSH).

Installation

# With pip.
pip install pyinfra-lxd-connector

# With pipx.
pipx inject pyinfra pyinfra-lxd-connector

# With uv.
uv tool install pyinfra --with pyinfra-lxd-connector

Usage

pyinfra @lxd/remotehost:container ...

If you need sudo to use lxd commands, you can specify the lxd_sudo to True in your inventory.

Options

  • lxd_sudo: Use sudo to call LXD command. (default to True)
  • lxd_sudo_user: Use an another sudo user to run LXD commands. (default to None)

Support

If you have any feature requests, bug reports or security issues, please log them on our issue tracker.

License

The pyinfra-lxd-connector code is released under MIT.

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

pyinfra_lxd_connector-0.1.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

pyinfra_lxd_connector-0.1.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file pyinfra_lxd_connector-0.1.3.tar.gz.

File metadata

  • Download URL: pyinfra_lxd_connector-0.1.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.2 Linux/6.1.0-44-amd64

File hashes

Hashes for pyinfra_lxd_connector-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bf609d5a26a910696eac84ffb7c2d2eb32e1f8d4c9ea019a76c8e381688af3c0
MD5 1865608e8475739837ab26f45c52bfdf
BLAKE2b-256 5065623046dd782fb7305c135267db1b8a4b799b1a07db48dcd83a424a6e9509

See more details on using hashes here.

File details

Details for the file pyinfra_lxd_connector-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pyinfra_lxd_connector-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 66778bd2e31104421e54ee3912010632e1dd53f24def6da01adafb239ae91426
MD5 809dc46a34c4eac97a2af72d0573a397
BLAKE2b-256 d300bb6f9c7e86af4a20fbd3bb740e60c7e06122182d0ee8cd055758dba8511f

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