Skip to main content

Management of resources on System Center Virtual Machine Manager (SCVMM) in a declarative way.

Project description

vmm-manager

Python script that manages resources in the System Center Virtual Machine Manager (SCVMM), in a declarative way, based on a YAML configuration file.

License Integration Release Python PyPI

Breaking changes

1.0.0

  • The inventory file schema has completely changed. See the inventory_example.yaml file for more details.
  • The command parameters were renamed to be more consistent.
  • The API and inventory schema are now stable.

Prerequisites

You need a Windows machine, which will serve as the access point to SCVMM, with the following tools:

Installation

pip install -U vmm-manager

How to use

Use the command below to see the available options:

vmm_manager -h

Environment variables

You can set environment variables to avoid passing the same parameters every time you run the script. See an example in the .env.default file.

Example of a inventory file

inventory_example.yaml

Development

Install Poetry

Run the following commands to install Poetry:

# install
curl -sSL https://install.python-poetry.org | python3 -

# auto-completion
# Bash
poetry completions bash >> ~/.bash_completion

Environment variables (optional)

Use the .env.default file as a template to create a .env file with the environment variables needed to run the script. You can load them by running the command export $(cat .env | xargs) before executing the script.

How to run

# Loading environment variables (optional)
export $(cat .env | xargs)

# Install dependencies
poetry install --no-root

# Run
poetry run python -m vmm_manager -h

Helpful commands

# Poetry shell
poetry shell

# Add a dependency
poetry add <pacote> [--dev]

# Update dependencies
poetry update

# Run linting
./lint.sh

# Fix dependencies sorting
isort .

# Run tests
python -m pytest -vv

# List virtualenvs
poetry env list

# Remove a virtualenv
poetry env remove <name>

References

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

vmm_manager-1.1.1.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

vmm_manager-1.1.1-py3-none-any.whl (45.5 kB view details)

Uploaded Python 3

File details

Details for the file vmm_manager-1.1.1.tar.gz.

File metadata

  • Download URL: vmm_manager-1.1.1.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for vmm_manager-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e36c5ffb9d4a679f4928b32a31b8281677ff3b8dc3277401cf311d9047cc9b38
MD5 758b56b6cf75998b6ed8513c054f7f88
BLAKE2b-256 646c6675f95c6318b37806b9d01f41c695c89850d1a07a222c47ba9ed94f9d2e

See more details on using hashes here.

File details

Details for the file vmm_manager-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: vmm_manager-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 45.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for vmm_manager-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 820692a2a4d818f428a5c1987c0076412acbd921e3cbf1d34e75eb2aade0c82f
MD5 e7f6411e3621ee83689fa57a460518ed
BLAKE2b-256 5a8f3da1deb9158ad8502a7e7559c44c3eea5890ea7f5cc663ac6ed22f796ad2

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