https://github.com/dreamlab/vmshepherd-runtime-postgres-driver
VmShepherd's runtime management plugin
https://github.com/dreamlab/vmshepherd-runtime-postgres-driver
vmshepherd
Last synced: 7 months ago
JSON representation
VmShepherd's runtime management plugin
- Host: GitHub
- URL: https://github.com/dreamlab/vmshepherd-runtime-postgres-driver
- Owner: DreamLab
- License: apache-2.0
- Created: 2018-06-05T12:49:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-28T08:22:11.000Z (over 6 years ago)
- Last Synced: 2025-06-27T16:48:08.865Z (10 months ago)
- Topics: vmshepherd
- Language: Python
- Size: 46.9 KB
- Stars: 0
- Watchers: 13
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
vmshepherd-runtime-postgres-driver
==================================
Introduction
------------
Provides plugin for ``VmShepherd`` - driver allows to store runtime data and lock management in postgres database.
Installation
------------
Simply use ``pip``.
::
pip install vmshepherd-runtime-postgres-driver
Library requires (as well as VmShepherd itself) python 3.6 or later.
Usage
-----
Install package (in the same environment as VmShepherd) and configure ``VmShepherd`` like:
::
# ...
runtime:
driver: PostgresDriver
host: (hostname -f)
database: vmshepherd
user: vmshepherd
password: vmshepherd
# ...
Available config options
------------------------
.. csv-table::
:header: "Name", "Type", "Description", "Default value"
:widths: 15, 10, 40, 10
"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"
Develop
-------
Run tests:
::
make test
Create local DB in docker and start vmshepherd:
::
make db
make develop
License
-------
`Apache License 2.0 `_