A system deployment tool
Project description
Paracrine
Paracrine is a system deployment tool. It's based around Mitogen and standard Python packages for features (although, currently there's only the one core package). Current status is essentially, "works for me, probably won't eat your computer", but thoughts and patches are welcomed.
It's designed towards rapid idempotent deploys i.e. a zero-changes deploy should take in the order of a small number of seconds ideally, and so can be used as your application deployment option as well as for system changes, which has the design benefit of you could use it for GitOps-style deploys. Obviously, if you do more changes, it'll take longer, but that's generally less of an issue, but it should still be faster than most other tooling options. It assumes it's got a host system to run from, which probably can be anything that runs Python, but the testing for that so far has been on a Debian laptop.
It's named after Paracrine signaling "a type of cellular communication in which a cell produces a signal to induce changes in nearby cells" which feels pretty accurate for a deployment tool.
Main documentation is at https://palfrey.github.io/paracrine/
Usage
- Setup Python. Tested against 3.8+
pip install paracrine
- Write a main file describing what you want to setup. integration_test/main.py is a reasonable example. It must call the
run
function, which takes arguments for the inventory file, and list of modules to run. - Write an inventory file for the machines this is managing. Current setup assumes they're all the same. integration_test/docker/inventory.yaml is a reasonable example file, but I suggest generating it from whatever you're using to create the servers (e.g. Terraform).
- Write a
config.yaml
. This has a main top-level key ofenvironments
with keys below that for each inventory file you've got (integration_test/config.yaml just has one, but in most scenarios you'll have at least a dev and prod setup). What you do below that is up to you, but typically it'll be environment variables and secrets to feed into the main file. - Run
python -m paracrine.setup <inventory file>
- this will install the minimum python bits so that everything else works. - Run the main file (e.g.
python main.py ./docker/inventory.yaml
)
Limitations
- All the servers are assumed to be Debian Linux boxes (although Debian-derivatives like Ubuntu should work)
- Direct SSH access is assumed possible (Mitogen supports jump boxes, but there's no setup for that yet here) with keys, not passwords
- There's no "dry run" mode yet, which would be useful for GitOps
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
File details
Details for the file paracrine-0.0.5.tar.gz
.
File metadata
- Download URL: paracrine-0.0.5.tar.gz
- Upload date:
- Size: 36.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2600d880e0f64de9fa121b0f3ac7992b4bc21af13c3905255a1742cac108835 |
|
MD5 | 41c107f5036deecd8437a67cfd677f11 |
|
BLAKE2b-256 | de4801f307dc5e91e6056ef22019d5aeecc0b77f5010cbe8c72f7ed147bd81a0 |
File details
Details for the file paracrine-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: paracrine-0.0.5-py3-none-any.whl
- Upload date:
- Size: 42.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd008c56b38cd0667e1f92638b4e78073c7da1ca496f1a562604d5cab230aacc |
|
MD5 | f94e56c3f2c3baf745981d73715b346d |
|
BLAKE2b-256 | c335bd8919f86ff92fdaf41b0b793051c6c17e488a2352c9411d2daa3ccfd739 |