Skip to main content

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

Project description

vmm-manager

Script python que gerencia recursos no System Center Virtual Machine Manager (SCVMM), de forma declarativa, com base em um arquivo de configuração YAML.

License Integration Release Python PyPI

Pré-requisitos

É necessário ter uma máquina Windows, que servirá como ponto de acesso ao SCVMM, com as seguintes ferramentas:

Instalação

pip install -U vmm-manager

Uso

Para consultar as funções e os parâmetros disponíveis, utilize o comando:

vmm_manager -h

Exemplo de arquivo de inventário

inventario_exemplo.yaml

Desenvolvimento

Instalação e configuração do python-poetry

Execute os comandos a seguir:

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

# Configurar autocomplete
# Bash
poetry completions bash >> ~/.bash_completion

Variáveis de ambiente

Defina as variáveis de ambiente de acordo com as instruções do arquivo .env.default. Você pode criar um arquivo .env e executar o comando export $(cat .env | xargs) para defini-las antes da execução do script.

Como executar

# Carregando envs (opcional)
export $(cat .env | xargs)

# Instalando dependências
poetry install --no-root

# Executando script
poetry run python -m vmm_manager -h

Comandos úteis para DEV

# Habilitar shell
poetry shell

# Incluir uma dependência
poetry add <pacote> [--dev]

# Executar lint
pylint --load-plugins pylint_quotes tests/* vmm_manager/*

# Executar testes
python -m pytest -vv

# listar virtualenvs
poetry env list

# Remover um virtualenv
poetry env remove <nome>

Referências

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-0.3.3.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

vmm_manager-0.3.3-py3-none-any.whl (45.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vmm_manager-0.3.3.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.1 Linux/5.15.0-1031-azure

File hashes

Hashes for vmm_manager-0.3.3.tar.gz
Algorithm Hash digest
SHA256 dcfc19a6a0f6730113a3fc8ec7addfbb7e8df9ddedc4768b2f3c4ca9178357ab
MD5 e0fb907203d7f8e83ecc83a6377ed03b
BLAKE2b-256 b4d981946a49603bdb0ed81f88a650fab09052c53add533b0678185d89dab2de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vmm_manager-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 45.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.1 Linux/5.15.0-1031-azure

File hashes

Hashes for vmm_manager-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4f04433361b3467ca99c02ed3df21d7a03dd2793c61fb12fa13a89ed33cbd1f5
MD5 0ba8da7857451231d7435d1bdaa1f0e0
BLAKE2b-256 83c8c14dd6ee453e4756fe4c7bc8e9848bd4a0881c243f1d844ef7ed56971577

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