Skip to main content

Cyware Situational Awareness Platform

Deployment Procedure

Review the Prerequisites before you start the deployment. The steps to deploy the web application services are:

Update Vars File

The vars.yml file includes variables, such as IP address of the database server, base path, database passwords, and endpoints, that are needed for the Collaborate application and database services.

Before you Start

Ensure that you have configured static IP addresses for the database and web application servers.

Steps

To update the vars.yml file, do the following:

  1. Run the following command on the web application server to open the vars.yml file in edit mode:

    vi /home/centos/csap-installer/vars/csap/vars.yml
  2. Update the respective values, such as base and log paths, database URLs and passwords, and more.

  3. Save and exit.

Deploy Collaborate Application Stack

To deploy the web application services, go to the /home/centos/ directory and run the following command on the web application server:

bash app.sh

Note

The app.sh script takes some time to run. Do not interrupt while the script is running.

Sample Output
PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
ok: [10.xx.xx.20]

TASK [deploy/deploy-csap : Change ansible python interpreter to python3] *******
ok: [10.xx.xx.20]

TASK [deploy/deploy-csap : create directory if they don't exist] ***************
changed: [10.xx.xx.20] => (item=/apps/cyware/conf)
changed: [10.xx.xx.20] => (item=/apps/cyware/data)
changed: [10.xx.xx.20] => (item=/apps/cyware/logs/csap)
changed: [10.xx.xx.20] => (item=/apps/cyware/logs/webapp)
changed: [10.xx.xx.20] => (item=/apps/cyware/logs/dashboard)
changed: [10.xx.xx.20] => (item=/apps/cyware/logs/celery-beat)
changed: [10.xx.xx.20] => (item=/apps/cyware/logs/celery-notification)
changed: [10.xx.xx.20] => (item=/apps/cyware/logs/celery-worker)
changed: [10.xx.xx.20] => (item=/apps/cyware/shared_apps)
changed: [10.xx.xx.20] => (item=/apps/cyware/fusionexport/data)
changed: [10.xx.xx.20] => (item=/apps/cyware/configs)

TASK [deploy/deploy-csap : Change ansible python interpreter to python2] *******
ok: [10.xx.xx.20]

TASK [deploy/deploy-csap : Copy config.yaml] ***********************************
changed: [10.xx.xx.20]

TASK [deploy/deploy-csap : Copy csap.env] **************************************
changed: [10.xx.xx.20]

TASK [deploy/deploy-csap : Copy csap stack file] *******************************
changed: [10.xx.xx.20]

TASK [deploy/deploy-csap : Change ansible python interpreter to python3] *******
ok: [10.xx.xx.20]

TASK [deploy/deploy-csap : Remove CSAP stack] **********************************
21:47:22  changed: [10.xx.xx.2
.
.
.
.
TASK [deploy/deploy-csap : Deploy csap stack from a compose file] **************
changed: [10.xx.xx.20]

TASK [deploy/deploy-csap : Wait for services to become healthy] ****************
Pausing for 90 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
ok: [10.xx.xx.20]

PLAY RECAP *********************************************************************
10.xx.xx.20                 : ok=18   changed=12   unreachable=0    failed=0    skipped=0    rescued=0    ignored=1