Skip to content

Commit

Permalink
fix documentation and CI with rabbitmq chart
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsagtani97 committed Jan 3, 2024
1 parent 0be790d commit 3ba71f7
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 29 deletions.
2 changes: 1 addition & 1 deletion ansible/roles-external/sft
4 changes: 3 additions & 1 deletion bin/offline-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ if [ -f "$ANSIBLE_DIR/inventory/offline/hosts.ini" ] && [ -f "$ANSIBLE_DIR/inven
fi

echo "using ansible inventory: $INVENTORY_FILE"
cat $INVENTORY_FILE

# Populate the assethost, and prepare to install images from it.
#
Expand Down Expand Up @@ -57,3 +56,6 @@ ansible-playbook -i $INVENTORY_FILE $ANSIBLE_DIR/cassandra.yml
ansible-playbook -i $INVENTORY_FILE $ANSIBLE_DIR/elasticsearch.yml
ansible-playbook -i $INVENTORY_FILE $ANSIBLE_DIR/minio.yml
ansible-playbook -i $INVENTORY_FILE $ANSIBLE_DIR/restund.yml

# create helm values that tell our helm charts what the IP addresses of cassandra, elasticsearch and minio are:
ansible-playbook -i $INVENTORY_FILE $ANSIBLE_DIR/helm_external.yml --skip-tags=rabbitmq-external
2 changes: 1 addition & 1 deletion bin/offline-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ WSD_CONTAINER=$(sudo docker load -i $SCRIPT_DIR/../containers-adminhost/containe
./bin/offline-secrets.sh

sudo docker run --network=host -v $SSH_AUTH_SOCK:/ssh-agent -e SSH_AUTH_SOCK=/ssh-agent -v $PWD:/wire-server-deploy $WSD_CONTAINER ./bin/offline-cluster.sh
sudo docker run --network=host -v $SSH_AUTH_SOCK:/ssh-agent -e SSH_AUTH_SOCK=/ssh-agent -v $PWD:/wire-server-deploy $WSD_CONTAINER ./bin/offline-helm.sh
sudo docker run --network=host -v $PWD:/wire-server-deploy $WSD_CONTAINER ./bin/offline-helm.sh
4 changes: 0 additions & 4 deletions bin/offline-helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
set -euo pipefail
set -x

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ANSIBLE_DIR="$( cd "$SCRIPT_DIR/../ansible" && pwd )"
ansible-playbook -i "$ANSIBLE_DIR"/inventory/offline "$ANSIBLE_DIR"/helm_external.yml --skip-tags=rabbitmq-external -vv

helm upgrade --install --wait cassandra-external ./charts/cassandra-external --values ./values/cassandra-external/values.yaml
helm upgrade --install --wait elasticsearch-external ./charts/elasticsearch-external --values ./values/elasticsearch-external/values.yaml
helm upgrade --install --wait minio-external ./charts/minio-external --values ./values/minio-external/values.yaml
Expand Down
19 changes: 0 additions & 19 deletions offline/docs_ubuntu_22.04.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,15 +385,6 @@ Minio and restund services have shared secrets with the `wire-server` helm chart
This should generate two files. `./ansible/inventory/group_vars/all/secrets.yaml` and `values/wire-server/secrets.yaml`.


#### Ensuring kubernetes is healthy.

Ensure the cluster comes up healthy. The container also contains kubectl, so check the node status:

```
d kubectl get nodes -owide
```
They should all report ready.

### WORKAROUND: old debian key
All of our debian archives up to version 4.12.0 used a now-outdated debian repository signature. Some modifications are required to be able to install everything properly.

Expand Down Expand Up @@ -513,16 +504,6 @@ For enabling Federation, we need to have RabbitMQ in place. Please follow the in

After that continue to the next steps below.


### Preparing helm values for external services
Afterwards, run the following playbook to create helm values that tell our helm charts
what the IP addresses of cassandra, elasticsearch, minio are.

```
d ansible-playbook -i ./ansible/inventory/offline/hosts.ini ansible/helm_external.yml --skip-tags=rabbitmq-external
```


### Deploying Wire

It's now time to deploy the helm charts on top of kubernetes, installing the Wire platform.
Expand Down
2 changes: 1 addition & 1 deletion offline/federation_preparation.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ d helm install rabbitmq-external ./charts/rabbitmq-external --values ./values/ra

Configure wire-server to use the external RabbitMQ service:

Edit the `/values/wire-server/prod-values.yaml` file to update the RabbitMQ host
Edit the `/values/wire-server/prod-values.example.yaml` file to update the RabbitMQ host
Under `brig` and `galley` section, you will find the `rabbitmq` config, update the host to `rabbitmq-external`, it should look like this:
```
rabbitmq:
Expand Down
4 changes: 2 additions & 2 deletions values/wire-server/prod-values.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ brig:
elasticsearch:
host: elasticsearch-external
rabbitmq:
host: rabbitmq # name of the rabbitmq service, for e.g. rabbitmq-external
host: rabbitmq # name of the rabbitmq service, either `rabbitmq-external` or `rabbitmq`
useSES: false
# Set to false if you want to hand out DynamoDB to store prekeys
randomPrekeys: true
Expand Down Expand Up @@ -141,7 +141,7 @@ galley:
cassandra:
host: cassandra-external
rabbitmq:
host: rabbitmq # name of the rabbitmq service, for e.g. rabbitmq-external
host: rabbitmq # name of the rabbitmq service, either `rabbitmq-external` or `rabbitmq`
settings:
# prefix URI used when inviting users to a conversation by link
conversationCodeURI: https://account.example.com/conversation-join/ # change this
Expand Down

0 comments on commit 3ba71f7

Please sign in to comment.