Skip to main content

Nautobot SSoT vSphere

Project description

Nautobot SSoT vSphere

A plugin for Nautobot that leverages the SSoT plugin to create Virtual Machines, VMInterfaces, IPAddresses, Clusters, and Cluster Groups from VMWare vSphere.

JobOverview VirtualMachines

The future of Virtual Machine In Nautobot

There is discussion in place to that will bring big changes to VirtualMachine and VMInterface targeted for release 2.0. See the issue

When that time comes, this application will need to be updated to handle the new core model structure

Installation

The plugin is available as a Python package in pypi and can be installed with pip

pip install nautobot-ssot-vsphere

The plugin is compatible with Nautobot 1.2.0 and higher

To ensure Nautobot SSoT vSphere is automatically re-installed during future upgrades, create a file named local_requirements.txt (if not already existing) in the Nautobot root directory (alongside requirements.txt) and list the nautobot-ssot-vsphere package:

# echo nautobot-ssot-vsphere >> local_requirements.txt

Once installed, the plugin needs to be enabled in your nautobot_config.py

# In your nautobot_config.py
PLUGINS = ["nautobot_ssot_vsphere"]

PLUGINS_CONFIG = {
    "nautobot_ssot_vsphere": {
        "VSPHERE_URI": os.getenv("VSPHERE_URI"),
        "VSPHERE_USERNAME": os.getenv("VSPHERE_USERNAME"),
        "VSPHERE_PASSWORD": os.getenv("VSPHERE_PASSWORD"),
        "VSPHERE_VERIFY_SSL": is_truthy(os.getenv("VSPHERE_VERIFY_SSL", False)),
    },
}

The plugin behavior can be controlled with additional configuration settings

- `VSPHERE_TYPE` Defaults to `VMWare vSphere`
- `ENFORCE_CLUSTER_GROUP_TOP_LEVEL` Defaults to True
- `VSPHERE_VM_STATUS_MAP` Defaults to {"POWERED_OFF": "Offline", "POWERED_ON": "Active"}
- `VSPHERE_IP_STATUS_MAP` Defaults to {"PREFERRED": "Active", "UNKNOWN": "Reserved"}
- `VSPHERE_VM_INTERFACE_MAP` Defaults to {"NOT_CONNECTED": False, "CONNECTED": True}
- `PRIMARY_IP_SORT_BY` Defaults to "Lowest"
- `DEFAULT_USE_CLUSTERS` Defaults to `True`
- `DEFAULT_CLUSTER_NAME` Defaults to "vSphere Default Cluster"

To get a detailed description on each configuration setting, head over to the Overview documentation.

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

nautobot-ssot-vsphere-0.1.0.tar.gz (44.1 kB view details)

Uploaded Source

Built Distribution

nautobot_ssot_vsphere-0.1.0-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

Details for the file nautobot-ssot-vsphere-0.1.0.tar.gz.

File metadata

  • Download URL: nautobot-ssot-vsphere-0.1.0.tar.gz
  • Upload date:
  • Size: 44.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for nautobot-ssot-vsphere-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3f923817e7a47ae8f5ac185b21d27b1341d60b464f03a858a9d54b6a66d762a
MD5 d31b4c055b19737d9c3c3ce9eb4abe1a
BLAKE2b-256 fcdbb03b0de72f8212df5ead6b9be654098fb804b6e4c192be116ed666e5743b

See more details on using hashes here.

File details

Details for the file nautobot_ssot_vsphere-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nautobot_ssot_vsphere-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62756e202e03b2875eb8231a18b6589c9313a08f4e0cff05b1e0dfc6fa9d3824
MD5 47b202189cc8b39cfdf09f64dc1060ea
BLAKE2b-256 4dd07e0187b53a8cb7a5bfead821ae11cca278e0ab74eb60d3aaed69b3336316

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