|
1 |
| -postgresql-apb |
2 |
| -====================== |
| 1 | +[](https://travis-ci.org/ansibleplaybookbundle/postgresql-apb) |
3 | 3 |
|
4 |
| -[](https://travis-ci.org/openshift/ansible-service-broker) |
| 4 | +PostgreSQL APB |
| 5 | +============== |
5 | 6 |
|
6 |
| -An apb for deploying [PostgreSQL](https://www.postgresql.org). |
| 7 | +Ansible Role for installing (and uninstalling) [postgresql](https://www.postgresql.org/about/) |
| 8 | +in a Kubernetes/OpenShift Cluster. |
7 | 9 |
|
8 |
| -## What it does |
9 |
| -* Deploys 1 postgresql container. |
| 10 | +Requirements |
| 11 | +------------ |
10 | 12 |
|
11 |
| -## Requirements |
12 |
| -* N/A |
| 13 | +- [openshift-restclient-python](https://github.com/openshift/openshift-restclient-python) |
| 14 | +- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) |
13 | 15 |
|
14 |
| -## Parameters |
15 |
| -* namespace: Optional, default 'rhscl-postgresql-apb', Namespace to deploy the cluster in. |
16 |
| -* postgresql_database, Optional, default 'admin', Postgresql database name. |
17 |
| -* postgresql_password, Optional, default is a randomly generated string, Postgresql databaase password. |
18 |
| -* postgresql_user, Optional, default 'admin', Postgresql database username. |
19 |
| -* postgresql_version, Optional, default '9.6', Postgresql version. 9.4, 9.5, and 9.6 are supported. |
| 16 | +Role Variables |
| 17 | +-------------- |
20 | 18 |
|
21 |
| -## Running the application |
22 |
| -`docker run --rm --net=host -v $HOME/.kube:/opt/apb/.kube:z -u $UID docker.io/ansibleplaybookbundle/postresql-apb provision` |
| 19 | +See [defaults/main.yaml](defaults/main.yaml). |
23 | 20 |
|
24 |
| -## Tearing down the application |
25 |
| -`docker run -e "OPENSHIFT_TARGET=<openshift_target>" -e "OPENSHIFT_TOKEN=<token>" ansibleplaybookbundle/postgresql-apb deprovision` |
| 21 | +Example Playbook |
| 22 | +---------------- |
| 23 | + |
| 24 | +See [playbooks/provision.yml](playbooks/provision.yml). |
| 25 | + |
| 26 | +License |
| 27 | +------- |
| 28 | + |
| 29 | +Apache-2.0 |
| 30 | + |
| 31 | +Author Information |
| 32 | +------------------ |
| 33 | + |
| 34 | +http://automationbroker.io |
0 commit comments