VMware ALB Provider for Idem
Project description
About
nsx_alb Cloud Provider for Idem
What is Idem?
This project is built with idem, an idempotent, imperatively executed, declarative programming language written in Python. This project extends idem!
For more information:
Getting Started
Prerequisites
Python 3.8+
git (if installing from source, or contributing to the project)
Installation
You can install idem_vmware_alb either from PyPI or from source.
Install from PyPI
pip install "idem_vmware_alb"
Install from source
Clone the idem_vmware_alb repository and install with pip.
# clone repo
git clone git@<your-project-path>/idem_vmware_alb.git
cd idem_vmware_alb
# Setup venv
python3 -m venv .venv
source .venv/bin/activate
pip install -e idem_vmware_alb
Setup
After installation nsx_alb idem provider execution and state modules will be accessible to the pop hub. In order to use them we need to set up our credentials.
Create a new file called credentials.yaml and populate it with profiles. The default profile will be used automatically by idem unless you specify one with –acct-profile=profile_name on the cli.
credentials.yaml
nsx_alb:
default:
username: my_user
password: my_good_password
endpoint_url: https://console.nsx_alb.com/api
Now encrypt the credentials file and add the encryption key and encrypted file path to the ENVIRONMENT.
idem encrypt credentials.yaml
output:
-A9ZkiCSOjWYG_lbGmmkVh4jKLFDyOFH4e4S1HNtNwI=
Add these to your environment:
export ACCT_KEY="-A9ZkiCSOjWYG_lbGmmkVh4jKLFDyOFH4e4S1HNtNwI="
export ACCT_FILE=$PWD/credentials.yaml.fernet
You are ready to use idem_vmware_alb!
State Example
Example of using nsx_alb state in SLS:
my_state.sls:
ensure_sample_exists:
nsx_alb.sample.present:
- name: a_sample_name
- description: Managed by Idem
Create sample state:
idem state my_state.sls
Delete sample state:
idem state my_state.sls --invert
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file idem_vmware_alb-0.6.1.tar.gz
.
File metadata
- Download URL: idem_vmware_alb-0.6.1.tar.gz
- Upload date:
- Size: 367.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/41.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ef4c5a7a9fc24c52d975a75d23972e8b47fbcec7d0e2a6ee3808158b7367284 |
|
MD5 | 2402acad85cbb37c23828c364ce1a0b0 |
|
BLAKE2b-256 | a013310deb26f1220bf7c9cad9268e997ce492969b0b1f4a96c1b7c5f84a419e |
File details
Details for the file idem_vmware_alb-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: idem_vmware_alb-0.6.1-py3-none-any.whl
- Upload date:
- Size: 386.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/41.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e64cf2ddfcea145605f5e33ee4c9886ace5e5c1405cd4fa728b35cbcb91a96 |
|
MD5 | 7bb20b1efd14899f056fe09387b23aac |
|
BLAKE2b-256 | 3a1c0c88f50a7344ba70c1c434641c134cf840f1acb0324fc3294214b52d830b |