summaryrefslogtreecommitdiffstats
path: root/docs/sections/services/prh/configuration.rst
blob: 0e4109cfa24782c9bc4ff011de5c7d8b079ce305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0

.. _prh_configuration:

Configuration
=============

PRH expects to be able to fetch configuration directly from consul service in following JSON format:

.. code-block:: json

  {
    "aai": {
      "aaiClientConfiguration": {
        "aaiHost": "aai.onap.svc.cluster.local",
        "aaiHostPortNumber": 8443,
        "aaiIgnoreSslCertificateErrors": true,
        "aaiProtocol": "https",
        "aaiUserName": "AAI",
        "aaiUserPassword": "AAI",
        "aaiBasePath": "/aai/v12",
        "aaiPnfPath": "/network/pnfs/pnf",
      }
    },
    "dmaap": {
      "dmaapConsumerConfiguration": {
        "consumerGroup": "OpenDCAE-c12",
        "consumerId": "c12",
        "dmaapContentType": "application/json",
        "dmaapHostName": "message-router.onap.svc.cluster.local",
        "dmaapPortNumber": 3904,
        "dmaapProtocol": "http",
        "dmaapTopicName": "/events/unauthenticated.VES_PNFREG_OUTPUT",
        "dmaapUserName": "admin",
        "dmaapUserPassword": "admin",
        "messageLimit": -1,
        "timeoutMs": -1
      },
      "dmaapProducerConfiguration": {
        "dmaapContentType": "application/json",
        "dmaapHostName": "message-router.onap.svc.cluster.local",
        "dmaapPortNumber": 3904,
        "dmaapProtocol": "http",
        "dmaapTopicName": "/events/unauthenticated.PNF_READY",
        "dmaapUserName": "admin",
        "dmaapUserPassword": "admin"
      }
    },
    "security": {
      "trustStorePath": "/opt/app/prh/etc/cert/trust.jks",
      "trustStorePasswordPath": "/opt/app/prh/etc/cert/trust.pass",
      "keyStorePath": "/opt/app/prh/etc/cert/cert.jks",
      "keyStorePasswordPath": "/opt/app/prh/etc/cert/jks.pass",
      "enableAaiCertAuth": "false",
      "enableDmaapCertAuth": "false"
    }
  }

The configuration is created from PRH Cloudify blueprint by specifying **application_config** node during ONAP OOM/Kubernetes deployment.