Skip to content

Commit

Permalink
move helm_external.yml playbook execution to offline-cluster.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsagtani97 committed Dec 21, 2023
1 parent be851a5 commit de67530
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
3 changes: 3 additions & 0 deletions bin/offline-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,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
10 changes: 0 additions & 10 deletions offline/docs_ubuntu_22.04.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,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

0 comments on commit de67530

Please sign in to comment.