VMware ALB Provider for Idem
Project description
Idem_vmware_alb
vmware_alb Cloud Provider for Idem
DEVELOPMENT
Clone the idem_vmware_alb repository and install with pip.
git clone git@gitlab.com:my-user/idem_vmware_alb.git
pip install -e idem_vmware_alb
ACCT
After installation vmware_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.
acct backends provide alternate methods for storing profiles.
The vmware_alb provider uses the vmware_alb acct plugin for authentication. A profile needs to specify the authentication parameters for vmware_alb.
credentials.yaml
vmware_alb:
default:
username: my_user
password: my_good_password
endpoint_url: https://console.vmware_alb.com/api
Now encrypt the credentials file and add the encryption key and encrypted file path to the ENVIRONMENT.
The acct command should be available as it is a requisite of idem and idem_vmware_alb. Encrypt the the credential file.
acct encrypt credentials.yaml
output:
-A9ZkiCSOjWYG_lbGmmkVh4jKLFDyOFH4e4S1HNtNwI=
Add these to your environment:
export ACCT_KEY="-A9ZkiCSOjWYG_lbGmmkVh4jKLFDyOFH4e4S1HNtNwI="
export ACCT_FILE=$PWD/credentials.yaml.fernet
USAGE
A profile can be specified for use with a specific state. If no profile is specified, the profile called “default”, if one exists, will be used:
ensure_user_exists:
vmware_alb.user.present:
- acct_profile: my-staging-env
- name: a_user_name
- kwarg1: val1
It can also be specified from the command line when executing states.
idem state --acct-profile my-staging-env my_state.sls
It can also be specified from the command line when calling an exec module directly.
idem exec --acct-profile my-staging-env vmware_alb.user.list
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
Hashes for idem_vmware_alb-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54c7729c26e5f7357813cf57d49e74385600f59ed6b948928854a219720fd8a9 |
|
MD5 | d4117db373846511614012dd8b56b9de |
|
BLAKE2b-256 | 29f7f4eb60fca3d898736fa429a5b3c9f2b1ec48d294382207cbc6d07bbe9993 |