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 $(grep -v '^#' .env | grep -v '^$' | xargs) before executing the script.

How to run

# Loading environment variables (optional)
export $(grep -v '^#' .env | grep -v '^$' | xargs)

# Install dependencies
poetry install --no-root

# Run
poetry run python -m vmm_manager -h

Helpful commands

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

# Update dependencies
poetry update

# Run linting
poetry run ./lint.sh

# Fix dependencies sorting
poetry run isort .

# Run tests
poetry run 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.3.0.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vmm_manager-1.3.0.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Linux/6.11.0-1018-azure

File hashes

Hashes for vmm_manager-1.3.0.tar.gz
Algorithm Hash digest
SHA256 7d9e824ae9edb9831e140ae9abc138355e0d48e95105100b1b1b2221c87aad1f
MD5 bb2edae0d1b4f6fbdf52f6b87fd432db
BLAKE2b-256 dcf0bd62eb45c0656a6e7a093dcbb338f7fff685124eac078eb1724a595d8dae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vmm_manager-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 45.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Linux/6.11.0-1018-azure

File hashes

Hashes for vmm_manager-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95795d2da11067122d3f5d2374cd17c73c1c48caf494c5bbe842a6d574c8d03b
MD5 fa87f16915fc37f6cce7c69533f2e74c
BLAKE2b-256 bb43907f6088547eb2f7196f1a4d568c6eaee234edc1980cdd178bcedd3006e0

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