Provides plugin for VmShepherd
- driver allows to store runtime data and lock management in postgres database.
Simply use pip
.
pip install vmshepherd-runtime-postgres-driver
Library requires (as well as VmShepherd itself) python 3.6 or later.
Install package (in the same environment as VmShepherd) and configure VmShepherd
like:
# ... runtime: driver: PostgresDriver host: (hostname -f) database: vmshepherd user: vmshepherd password: vmshepherd # ...
Name | Type | Description | Default value |
---|---|---|---|
host | string | Postgres DB host. | |
port | integer | Postgres DB port. | 5432 |
database | string | Postgres DB name. | |
user | string | Postgres auth user. | |
password | string | Postgres auth password. | |
pool_size | integer | Postgres connection pool size. | 2 |
Run tests:
make test
Create local DB in docker and start vmshepherd:
make db make develop