Skip to main content

Cyware Orchestrate

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

  3. Save and exit.

Deploy Orchestrate 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
Sample Output
PLAY [all] *********************************************************************
 
TASK [Gathering Facts] *********************************************************
ok: [10.xx.xx.44]

TASK [deploy/deploy-csol : Change ansible python interpreter to python3] *******
ok: [10.xx.xx.44]
  
TASK [deploy/deploy-csol : Block EC2 metadata IP in DOCKER-USER Chain] *********
ok: [10.xx.xx.44]
 
TASK [deploy/deploy-csol : create directory if they don't exist] ***************
ok: [10.xx.xx.44] => (item=/apps/cyware/data)
changed: [10.xx.xx.44] => (item=/apps/cyware/conf)
ok: [10.xx.xx.44] => (item=/apps/cyware/logs/csol_integration)
changed: [10.xx.xx.44] => (item=/apps/cyware/logs/csol_nginx)
ok: [10.xx.xx.44] => (item=/apps/cyware/logs/csol_celery_automatic)
ok: [10.xx.xx.44] => (item=/apps/cyware/logs/csol_celery_manual)
ok: [10.xx.xx.44] => (item=/apps/cyware/logs/csol_celery_beat)
changed: [10.xx.xx.44] => (item=/apps/cyware/logs/csol_datasyncworker)
changed: [10.xx.xx.44] => (item=/apps/cyware/logs/csol)
changed: [10.xx.xx.44] => (item=/apps/cyware/logs/migration)
changed: [10.xx.xx.44] => (item=/apps/cyware/logs/config_service)
changed: [10.xx.xx.44] => (item=/apps/cyware/shared-apps)
  
TASK [deploy/deploy-csol : Creating an empty logs file] ************************
changed: [10.xx.xx.44]

TASK [deploy/deploy-csol : Creating an empty logs file] ************************
changed: [10.xx.xx.44]

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

TASK [deploy/deploy-csol : Copy csol.env] **************************************
changed: [10.xx.xx.44]

TASK [deploy/deploy-csol : Copy integration.env] *******************************
changed: [10.xx.xx.44]
 
TASK [deploy/deploy-csol : Copy configservice.env] *****************************
changed: [10.xx.xx.44]
 
TASK [deploy/deploy-csol : Copy configservice.env] *****************************
ok: [10.xx.xx.44]
 
TASK [deploy/deploy-csol : Copy csol stack file] *******************************
changed: [10.xx.xx.44]
 
TASK [deploy/deploy-csol : Copy tenant config json] ****************************
changed: [10.xx.xx.44]
 
TASK [deploy/deploy-csol : Copy migration stack file] **************************
changed: [10.xx.xx.44]

TASK [deploy/deploy-csol : lookup firebase secret] *****************************
ok: [10.xx.xx.44]
 
TASK [deploy/deploy-csol : Copy hosts to file] *********************************
ok: [10.xx.xx.44]

TASK [deploy/deploy-csol : lookup apns secret] *********************************
ok: [10.xx.xx.44]
 
TASK [deploy/deploy-csol : Copy hosts to file] *********************************
ok: [10.xx.xx.44]

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

TASK [deploy/deploy-csol : Remove docker stack] ********************************
changed: [10.xx.xx.44]

TASK [deploy/deploy-csol : Remove docker service co_migrations] ****************
changed: [10.xx.xx.44]
 
TASK [deploy/deploy-csol : Remove config stack] ********************************
changed: [10.xx.xx.44]
 
TASK [deploy/deploy-csol : Deploy migration stack from a compose file] *********
changed: [10.xx.xx.44]

TASK [deploy/deploy-csol : Wait for migration to 3x] ***************************
changed: [10.xx.xx.44]

TASK [deploy/deploy-csol : debug] **********************************************
ok: [10.xx.xx.44] => {
.
.
.
}

TASK [deploy/deploy-csol : Remove migration stack] *****************************
changed: [10.xx.xx.44]

TASK [deploy/deploy-csol : Change ansible python interpreter to python3] *******
ok: [10.xx.xx.44]
 
TASK [deploy/deploy-csol : Remove docker stack] ********************************
changed: [10.xx.xx.44]

TASK [deploy/deploy-csol : Deploy csol stack from a compose file] **************
changed: [10.xx.xx.44]

TASK [deploy/deploy-csol : 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.44]

TASK [deploy/deploy-csol : Copy docker sock permission script] *****************
changed: [10.xx.xx.44]

TASK [deploy/deploy-csol : Add docker sock permission script to cron] **********
ok: [10.xx.xx.44]
 
PLAY RECAP *********************************************************************
10.xx.xx.44                  : ok=32   changed=18   unreachable=0    failed=0    skipped=0    rescued=0    ignored=0