Skip to main content

Cyware Fusion and Threat Response

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 the IP address of the database server, base path, database passwords, and endpoints, that are needed for the Respond 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/cftr-installer/vars/cftr/vars.yml
  2. Update the respective values, such as base and log paths, database URLs and passwords, and more.

  3. Save and exit.

Deploy Respond 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-cftr : Change ansible python interpreter to python3] *******
ok: [10.xx.xx.20]
  
TASK [deploy/deploy-cftr : Log into private registry and force re-authorization] ***
changed: [10.xx.xx.20]
  
TASK [deploy/deploy-cftr : create directory if they don't exist] ***************
changed: [10.xx.xx.20] => (item=/apps/cyware/conf)
ok: [10.xx.xx.20] => (item=/apps/cyware/data)
ok: [10.xx.xx.20] => (item=/apps/cyware/logs/cftr_backend/application)
ok: [10.xx.xx.20] => (item=/apps/cyware/logs/cftr_backend/celery)
ok: [10.xx.xx.20] => (item=/apps/cyware/logs/cftr_celery_beat/application)
ok: [10.xx.xx.20] => (item=/apps/cyware/logs/cftr_celery_beat/celery)
ok: [10.xx.xx.20] => (item=/apps/cyware/logs/cftr_celery_worker/application)
ok: [10.xx.xx.20] => (item=/apps/cyware/logs/cftr_celery_worker/celery)
ok: [10.xx.xx.20] => (item=/apps/cyware/logs/cftr_frontend)
ok: [10.xx.xx.20] => (item=/apps/cyware/data/fusion_export)
 
TASK [deploy/deploy-cftr : Change ansible python interpreter to python2] *******
ok: [10.xx.xx.20]

TASK [deploy/deploy-cftr : lookup firebase secret] *****************************
ok: [10.xx.xx.20]
  
TASK [deploy/deploy-cftr : Copy cftr.env] **************************************
changed: [10.xx.xx.20]
  
TASK [deploy/deploy-cftr : Copy ml.env] ****************************************
changed: [10.xx.xx.20]
 
TASK [deploy/deploy-cftr : Copy cftr stack file] *******************************
changed: [10.xx.xx.20]
 
TASK [deploy/deploy-cftr : Change ansible python interpreter to python3] *******
ok: [10.xx.xx.20]

TASK [deploy/deploy-cftr : Docker Pull Backend Image] **************************
skipping: [10.xx.xx.20]
 
TASK [deploy/deploy-cftr : Get timestamp from the system] **********************
changed: [10.xx.xx.20]
  
TASK [deploy/deploy-cftr : Remove CFTR services] *******************************
changed: [10.xx.xx.20]
 
TASK [deploy/deploy-cftr : Remove docker service cftr_migrations] **************
skipping: [10.xx.xx.20]

TASK [deploy/deploy-cftr : Run Migrations Job] *********************************
skipping: [10.xx.xx.20]
  
TASK [deploy/deploy-cftr : debug] **********************************************
skipping: [10.xx.xx.20]
  
TASK [deploy/deploy-cftr : Deploy cftr stack from a compose file] **************
changed: [10.xx.xx.20]
 
TASK [deploy/deploy-cftr : Docker System Prune] ********************************
skipping: [10.xx.xx.20]
 
PLAY RECAP *********************************************************************
10.xx.xx.20                : ok=13   changed=8    unreachable=0    failed=0    skipped=5    rescued=0    ignored=0