Skip to content

Commit 94c08ab

Browse files
author
Alan Christie
committed
docs: Add installation notes
1 parent f4d8449 commit 94c08ab

File tree

2 files changed

+39
-5
lines changed

2 files changed

+39
-5
lines changed

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,42 @@ current health of your clone with: -
5454

5555
pre-commit run --all-files
5656

57-
## Local execution
57+
## Installation
58+
The repository contains an ansible playbook that can be used to simplify the
59+
deployment of the application into a pre-existing Kubernetes **Namespace** but you will
60+
need to customise the playbook by first defining your own variables.
61+
62+
To install the application follow the steps below.
63+
64+
From a poetry shell, install the required dependencies: -
65+
66+
poetry install --with deploy
67+
68+
Move to the `ansible` directory and define your variables: -
69+
70+
pushd ansible
71+
72+
> All the _required_ variables can be found at the top of the standard
73+
`default/main.yaml` file, but you are advised to inspect all the variables to
74+
ensure they are suitable for your installation (variables are defined in
75+
`default/main.yaml` and `vars/main.yaml`).
76+
77+
You can create a `parameters.yaml` file and set your variables there.
78+
A `parameters-template.yaml` file is provided as an example. This is protected from
79+
accidental commits as it's in the project's `.gitignore` file: -
80+
81+
cp parameters-template.yaml parameters.yaml
82+
83+
Then, when you have set your variables, run the playbook: -
84+
85+
ansible-playbook site.yaml -e @parameters.yaml
86+
87+
To remove the application run the playbook again, but set the `ess_state` variable
88+
to `absent`: -
89+
90+
ansible-playbook site.yaml -e @parameters.yaml -e ess_state=absent
91+
92+
## Local development
5893
You can build and run the service using `docker compose`: -
5994

6095
docker compose up --build --detach

ansible/parameters-template.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
22

33
# All the required variables...
4-
# Copy to 'parameter.yaml', which is excluded by the project's gitignore.
4+
# Copy to 'parameters.yaml', which is excluded by the project's gitignore.
55
#
66
# Review defaults/main.yaml and vars/main.yaml to see all the variables
7-
# and add any changes to suit your environment here.
7+
# and add any additional variables and values to suit your installation in this file.
8+
89
ess_namespace: SetMe
910
ess_service_account: SetMe
1011
ess_ws_hostname: SetMe
1112
ess_ampq_url: SetMe
12-
13-
ess_state: present

0 commit comments

Comments
 (0)