A configuration management service with support for secrets.
af0bfd813d
Currently, Deckhand is not fully compatible with postgresql as it uses sqlite for all of its testing, including functional testing. Since postgresql will be used in prod, Deckhand obviously must support it, in addition to sqlite, needed for unit testing. This commit alters the functional testing script to use postgresql as well as makes necessary back-end changes to support postgresql. Included in this commit: - alter tools/functional-tests.sh so that it uses postgresql as the db connection - modifies primary key for Bucket DB model to be an Integer rather than a String - updates foreign key to point to new primary key - updates necessary integration logic so that the bucket name is still known by the Document DB model and returned in appropriate response bodies Change-Id: I7bc806fb18f7b47c13978dcd806d422a573a06b3 |
||
---|---|---|
deckhand | ||
doc | ||
etc/deckhand | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.testr.conf | ||
AUTHORS | ||
Dockerfile | ||
entrypoint.sh | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
Deckhand
A foundational python REST YAML processing engine providing data and secrets management to other platform services.
To generate a configuration file automatically:
$ tox -e genconfig
Resulting deckhand.conf.sample file is output to :path:etc/deckhand/deckhand.conf.sample
Copy the config file to a directory discoverably by
oslo.conf
:
$ cp etc/deckhand/deckhand.conf.sample ~/deckhand.conf
To setup an in-memory database for testing:
[database]
#
# From oslo.db
#
# The SQLAlchemy connection string to use to connect to the database.
# (string value)
connection = sqlite:///:memory:
To run locally in a development environment:
$ sudo pip install uwsgi
$ virtualenv -p python3 /var/tmp/deckhand
$ . /var/tmp/deckhand/bin/activate
$ sudo pip install .
$ sudo python setup.py install
$ uwsgi --http :9000 -w deckhand.cmd --callable deckhand_callable --enable-threads -L