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
flake8 . && isort --check-only --diff .

# 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.0.3.tar.gz (29.4 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.0.3-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vmm_manager-1.0.3.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1018-azure

File hashes

Hashes for vmm_manager-1.0.3.tar.gz
Algorithm Hash digest
SHA256 cb2be41282f800a2ec6726d62eb1ab1a16013254a13c4fc2727dc6d488c5d2c9
MD5 5da36b490ba18088ad738010306a389e
BLAKE2b-256 3bbd960ae003b5c6f9cc808dc21c9b89cdfc4510adbdcbe73cf9476144f58def

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vmm_manager-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 45.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1018-azure

File hashes

Hashes for vmm_manager-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fc0656956a2924374a9f1a8de3cc93057ffef91a7f96d8c06c65bcec6ae62a69
MD5 fd20e744b2b432cf393e40e733aac66a
BLAKE2b-256 0f6765d9da57ab41375c613e8325edea8fb4b3cd01bb26ca29dbce6783a30ea4

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