OpenPaaS Documentation logo OpenPaaS Documentation

Table of contents

Overview

SmartSLA SmartSLA adds the ability for clients to create support tickets / issues concerning supported software under a scope of a contract and interact with experts and admins.

it consists of:

Installation

here are the steps required to install the SmartSLA after you have installed OpenPaas

1. install the backend component

$ESN_PATH is your openpaas installation path

$SMARTSLA_PATH is your SmartSLA installation path

git clone https://ci.linagora.com/linagora/lgs/smartsla/smartsla-backend.git
cd smartsla-backend
npm i
export SMARTSLA_PATH=$(pwd)
```bash
- link the module to openpaas

```bash
cd $ESN_PATH/modules
ln -s $SMARTSLA_PATH smartsla-backend

edit your $ESN_PATH/config/default.json and add smartsla-backend to the modules list

  ...
  "modules": [
  ...,
  smartsla-backend
  ],
  ...

2. install the frontend app

git clone https://ci.linagora.com/linagora/lgs/smartsla/smartsla-frontend.git
cd smartsla-frontend
npm i

to build the frontend for production just run npm run build and host the contents of the dist folder to in your web server ( exemple nginx )

configuration:

1. frontend

change the environment variables in public/end/openpaas.js to match your OpenPaaS instance:

2. backend

export $ESN_URL="http://localhost:8080/"
export $ESN_ADMIN="admin@open-paas.org"
export $ESN_PASS="secret"
curl -X PUT -H 'Accept: application/json' -H 'Content-Type: application/json' $ESN_URL -u "$ESN_ADMIN:$ESN_PASS"  -d '[
  {
    "name": "smartsla-backend",
    "configurations": [
      {
        "name": "limesurvey",
        "value": {
          "surveyId": 491487,
          "apiUrl": "http://limesurvey.smartsla.local/index.php/admin/remotecontrol/",
          "username": "admin",
          "password": "password"
        }
      }
    ]
  }
]'