(→Create genesys-environment) |
|||
Line 29: | Line 29: | ||
Refer to [[Documentation:HTCC:Dep:InstallationProcedures|InstallationProcedures]] for information on configuring GWS. | Refer to [[Documentation:HTCC:Dep:InstallationProcedures|InstallationProcedures]] for information on configuring GWS. | ||
− | ==Create | + | ==Create a Genesys Environment== |
− | {{Editgrn_open}} | + | {{Editgrn_open}} Information taken from http://internalwiki.us.int.genesyslab.com/dev_teams/index.php/Environment_API_Reference#Create_new__Environment{{Editgrn_close}} |
− | http://internalwiki.us.int.genesyslab.com/dev_teams/index.php/Environment_API_Reference#Create_new__Environment | + | |
+ | ===Mapping === | ||
+ | <pre> .../environment/v3/environments </pre> | ||
+ | |||
+ | === Object Description === | ||
+ | {| | ||
+ | |- | ||
+ | ! Name | ||
+ | ! Type | ||
+ | ! Description | ||
+ | ! Required | ||
+ | ! Default | ||
+ | |- | ||
+ | | tenant | ||
+ | | String | ||
+ | | Tenant name | ||
+ | | Y | ||
+ | | -- | ||
+ | |- | ||
+ | | appName | ||
+ | | String | ||
+ | | Application name to connect to | ||
+ | | Y | ||
+ | | -- | ||
+ | |- | ||
+ | | username | ||
+ | | String | ||
+ | | Username to connect to ConfigurationServer | ||
+ | | Y | ||
+ | | -- | ||
+ | |- | ||
+ | | password | ||
+ | | String | ||
+ | | Password to connect to ConfigurationServer | ||
+ | | Y | ||
+ | | -- | ||
+ | |- | ||
+ | | connectionProtocol | ||
+ | | String | ||
+ | | Connection protocol | ||
+ | | N | ||
+ | | addp | ||
+ | |- | ||
+ | | localTimeout | ||
+ | | Integer | ||
+ | | Local timeout | ||
+ | | N | ||
+ | | 5 | ||
+ | |- | ||
+ | | remoteTimeout | ||
+ | | Integer | ||
+ | | Remote timeout | ||
+ | | N | ||
+ | | 7 | ||
+ | |- | ||
+ | | traceMode | ||
+ | | String | ||
+ | | Trace mode | ||
+ | | N | ||
+ | | CFGTMBoth | ||
+ | |- | ||
+ | | tlsEnabled | ||
+ | | Boolean | ||
+ | | Use tls to connect to Configuration Server | ||
+ | | N | ||
+ | | false | ||
+ | |- | ||
+ | | configServers | ||
+ | | Array | ||
+ | | List of Configuration Servers in this environment (see bellow) | ||
+ | | N | ||
+ | | empty array | ||
+ | |} | ||
+ | |||
+ | === Configuration Server Object === | ||
+ | |||
+ | {| | ||
+ | |- | ||
+ | ! Name | ||
+ | ! Type | ||
+ | ! Description | ||
+ | ! Required | ||
+ | ! Default | ||
+ | |- | ||
+ | | primaryAddress | ||
+ | | String | ||
+ | | Address of primary Configuration Server | ||
+ | | Y | ||
+ | | -- | ||
+ | |- | ||
+ | | primaryPort | ||
+ | | Integer | ||
+ | | Port of primary Configuration Server | ||
+ | | Y | ||
+ | | -- | ||
+ | |- | ||
+ | | backupAddress | ||
+ | | String | ||
+ | | Address of backup Configuration Server | ||
+ | | N | ||
+ | | -- | ||
+ | |- | ||
+ | | backupPort | ||
+ | | Integer | ||
+ | | Port of backup Configuration Server | ||
+ | | N | ||
+ | | -- | ||
+ | |- | ||
+ | | readOnly | ||
+ | | Boolean | ||
+ | | Indicates if Configuration Server works in read only mode | ||
+ | | Y | ||
+ | | -- | ||
+ | |- | ||
+ | | locations | ||
+ | | String | ||
+ | | Location of Configuration Server | ||
+ | | Y | ||
+ | | -- | ||
+ | |} | ||
+ | |||
+ | ==== Example ==== | ||
+ | <pre> | ||
+ | POST .../environment/v3/environments | ||
+ | { | ||
+ | "data": { | ||
+ | "username": "default", | ||
+ | "remoteTimeout": 7, | ||
+ | "appName": "WS_Node", | ||
+ | "traceMode": "CFGTMBoth", | ||
+ | "tlsEnabled": false, | ||
+ | "localTimeout": 5, | ||
+ | "connectionProtocol": "addp", | ||
+ | "password": "passowrd", | ||
+ | "configServers": [ | ||
+ | { | ||
+ | "primaryPort": 8888, | ||
+ | "readOnly": false, | ||
+ | "primaryAddress": "voice-p.dev", | ||
+ | "locations": "usw1" | ||
+ | }, | ||
+ | { | ||
+ | "primaryPort": 8888, | ||
+ | "primaryAddress": "10.20.10.1", | ||
+ | "readOnly": false, | ||
+ | "locations": "use2", | ||
+ | "backupPort": 8888, | ||
+ | "backupAddress": "10.20.20.1" | ||
+ | } | ||
+ | ], | ||
+ | "tenant": "Environment" | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
+ | |||
+ | Response: | ||
+ | |||
+ | <pre> | ||
+ | { | ||
+ | "statusCode": 0, | ||
+ | "path": "/environments/2" | ||
+ | } | ||
+ | </pre> | ||
==Create contact-center== | ==Create contact-center== |
Revision as of 07:03, April 10, 2019
Contents
Deploying GWS in Test Labs
Install Docker and docker-compose
Install GWS micro-services
- Copy the premise directory to all target machines as /opt/genesys/gws/premise. This would be the application's prefix.
- Run the following command at all target machines:
# ./bin/preflight.sh
ImportantThis script disables firewalls and sets SElinux to permissive mode. - Run the following command at all target machines:
# ./bin/dump-restore.sh restore
Create GWS-data service Containers
- Create a systemd unit.
SERVICE_NAME="data" ./bin/register-systemd-unit.sh
- Start the data services.
systemctl start gws-data.service
- Configure Redis.
./bin/redis-starter.sh
Create GWS-applications Containers
- Create a systemd unit.
SERVICE_NAME="applications" ./bin/register-systemd-unit.sh
- Start the applications services.
systemctl start gws-applications.service
- Create the client.
./bin/client-curl-script.sh
- Check the status of applications.
./bin/healthcheck.sh
Configure GWS
Configure Config Server
Refer to InstallationProcedures for information on configuring GWS.
Create a Genesys Environment
Information taken from http://internalwiki.us.int.genesyslab.com/dev_teams/index.php/Environment_API_Reference#Create_new__Environment
Mapping
.../environment/v3/environments
Object Description
Name | Type | Description | Required | Default |
---|---|---|---|---|
tenant | String | Tenant name | Y | -- |
appName | String | Application name to connect to | Y | -- |
username | String | Username to connect to ConfigurationServer | Y | -- |
password | String | Password to connect to ConfigurationServer | Y | -- |
connectionProtocol | String | Connection protocol | N | addp |
localTimeout | Integer | Local timeout | N | 5 |
remoteTimeout | Integer | Remote timeout | N | 7 |
traceMode | String | Trace mode | N | CFGTMBoth |
tlsEnabled | Boolean | Use tls to connect to Configuration Server | N | false |
configServers | Array | List of Configuration Servers in this environment (see bellow) | N | empty array |
Configuration Server Object
Name | Type | Description | Required | Default |
---|---|---|---|---|
primaryAddress | String | Address of primary Configuration Server | Y | -- |
primaryPort | Integer | Port of primary Configuration Server | Y | -- |
backupAddress | String | Address of backup Configuration Server | N | -- |
backupPort | Integer | Port of backup Configuration Server | N | -- |
readOnly | Boolean | Indicates if Configuration Server works in read only mode | Y | -- |
locations | String | Location of Configuration Server | Y | -- |
Example
POST .../environment/v3/environments { "data": { "username": "default", "remoteTimeout": 7, "appName": "WS_Node", "traceMode": "CFGTMBoth", "tlsEnabled": false, "localTimeout": 5, "connectionProtocol": "addp", "password": "passowrd", "configServers": [ { "primaryPort": 8888, "readOnly": false, "primaryAddress": "voice-p.dev", "locations": "usw1" }, { "primaryPort": 8888, "primaryAddress": "10.20.10.1", "readOnly": false, "locations": "use2", "backupPort": 8888, "backupAddress": "10.20.20.1" } ], "tenant": "Environment" } }
Response:
{ "statusCode": 0, "path": "/environments/2" }
Create contact-center
This is an internal document. Should this information be published to customers?
Links
- Auth API: http://<GWS_APPLICATIONS_IP>:80/auth/v3/*
- Config API: http://<GWS_APPLICATIONS_IP>:80/configuration/v3/*
- Environment API: http://<GWS_APPLICATIONS_IP>:80/environment/v3/*
- Provisioning API: http://<GWS_APPLICATIONS_IP>:80/provisioning/v3/*
- Workspace API: http://<GWS_APPLICATIONS_IP>:80/workspace/v3/*
- Workspace UI: http://<GWS_APPLICATIONS_IP>:80/ui/wwe/*
- Portainer http://<GWS_APPLICATIONS_IP>:9000, http://<GWS_DATA_IP>:9000, http://<GWS_MONITORING_IP>:9000
Minimal Setup
Should this be included? To run the demo environment on your laptop, please follow these steps:
- Connect to Genesys VPN to be able to pull GWS-microservices images.
- Install Docker
- Install Docker-Compose
- Add Genesys Docker registry keys to your /etc/docker/certs.d directory.
- Get the gws-microservices hg repository.
$ cd gws-microservices/production/premise/docker/docker/minimal<pre><pre>$ docker-compose up
- Wait a couple of minutes for bootstrap process to finish.
- Open http://127.0.0.1:9000 to see the Portainer web-interface, select "Local connection".
- Open http://127.0.0.1/auth/v3/ui/sign-in.html to see the GWS-auth web-interface.
Comments or questions about this documentation? Contact us for support!