From d14d9f669a39bf00746c2155d51f27fc63438ef0 Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Mon, 8 Jan 2018 13:59:31 +0100 Subject: [PATCH] Document pip-related installation options. (#595) * Remove redundant requirements of Mac OS. * Clarify how to run the example in getting started. --- docs/README.rst | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/docs/README.rst b/docs/README.rst index 1787af23..c27615ad 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -25,19 +25,54 @@ We report new releases information :ref:`here `. Technical Requirements/Installation =================================== -**For Mac** +**Pre-requirements for Mac OS** To install requirements on a Mac, run the following: :: brew install postgresql etcd haproxy libyaml python - pip install psycopg2 pyyaml + +**General installation for pip** + +Patroni can be installed with pip: + +:: + + pip install patroni[dependencies] + +where dependencies can be either empty, or consist of one or more of the following: + +etcd + `python-etcd` module in order to use Etcd as DCS +consul + `python-consul` module in order to use Consul as DCS +zookeeper + `kazoo` module in order to use Zookeeper as DCS +exhibitor + `kazoo` module in order to use Exhibitor as DCS (same dependencies as for Zookeeper) +kubernetes + `kubernetes` module in order to use Kubernetes as DCS in Patroni +aws + `boto` in order to use AWS callbacks + +For example, the command in order to install Patroni together with dependencies for Etcd as a DCS and AWS callbacks is: + +:: + + pip install patroni[etcd,aws] + +Note that external tools to call in the replica creation or custom bootstap scripts (i.e. WAL-E) should be installed +independently of Patroni. ======================= Running and Configuring ======================= +The following section assumes Patroni repository as being cloned from https://github.com/zalando/patroni. Namely, you +will need example configuration files `postgres0.yml` and `postgres1.yml`. If you installed Patroni with pip, you can +obtain those files from the git repository and replace `./patroni.py` below with `patroni` command. + To get started, do the following from different terminals: ::