https://github.com/globocom/globomap-driver-acs
Python library for globomap-loader to get data from Cloudstack
https://github.com/globocom/globomap-driver-acs
cloudstack globomap globomap-loader python-library python36
Last synced: 5 months ago
JSON representation
Python library for globomap-loader to get data from Cloudstack
- Host: GitHub
- URL: https://github.com/globocom/globomap-driver-acs
- Owner: globocom
- License: apache-2.0
- Created: 2017-07-28T18:18:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-22T18:03:43.000Z (over 6 years ago)
- Last Synced: 2025-07-04T11:56:12.862Z (7 months ago)
- Topics: cloudstack, globomap, globomap-loader, python-library, python36
- Language: Python
- Size: 112 KB
- Stars: 3
- Watchers: 10
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# globomap-driver-acs
Python library for globomap-loader to get data from Cloudstack
## Plugin environment variables configuration
All of the environment variables below must be set for the plugin to work properly.
The variables are the combination of the the prefix 'ACS', the environment (region)
code passed on the driver constructor and the variable name.
| Variable | Description | Example |
|-----------------------------|---------------------------------|----------------------------------------------|
| ACS_$env_API_URL | Cloudstack API URL | http://yourdomain.cloudstack:8080/api/client |
| ACS_$env_API_KEY | Cloudstack API key | jIkLGAz0yqbJC15lS_XqHKRPZXI8M6 |
| ACS_$env_API_SECRET_KEY | Cloudstack API Secret | RJK0Xhb3iMwrIUIxJ3T7jL5fFrG14b |
| ACS_$env_RMQ_HOST | Cloudstack RabbitMQ host | rabbitmq.yourdomain.cloudstack |
| ACS_$env_RMQ_USER | Cloudstack RabbitMQ user | user-name |
| ACS_$env_RMQ_PASSWORD | Cloudstack RabbitMQ password | password |
| ACS_$env_RMQ_PORT | Cloudstack RabbitMQ port | 5673 (default value) |
| ACS_$env_RMQ_QUEUE | Cloudstack RabbitMQ queue name | events |
| ACS_$env_RMQ_EXCHANGE | Cloudstack RabbitMQ Exchange | cloudstack-events (default value) |
| ACS_$env_RMQ_LOADER_EXCHANGE| Cloudstack RabbitMQ Loader Exchange| cloudstack-globomap-loader |
| ACS_$env_RMQ_VIRTUAL_HOST | Cloudstack RabbitMQ virtual host| /globomap |
## Environment variables configuration to use CloudstackDataLoader
| Variable | Description | Example |
|--------------------------------|---------------------------------|----------------------------------------------|
| GLOBOMAP_LOADER_API_URL | GloboMap Loader API endpoint | http://api.globomap.loader.domain.com:8080 |
| GLOBOMAP_LOADER_API_USER | GloboMap Loader API user | user |
| GLOBOMAP_LOADER_API_PASSWORD | GloboMap Loader API password | password |
## Example of use
```python
from globomap_driver_acs.driver import Cloudstack
driver = Cloudstack({'env':'ENV_NAME'})
driver.process_updates(print)
```