summaryrefslogtreecommitdiffstats
path: root/docs/sections/services/prh/configuration.rst
blob: 9f449cb82e835d9ca621e9abe9ce985f59d7ea78 (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
61
62
63
64
65
66
67
68
69
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0

.. _prh_configuration:

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

PRH fetches configuration directly from CBS service in the following JSON format:

.. code-block:: json

  {
    "config":{
      "dmaap.dmaapConsumerConfiguration.dmaapUserName":"admin",
      "dmaap.dmaapConsumerConfiguration.dmaapUserPassword":"admin",
      "dmaap.dmaapConsumerConfiguration.consumerId":"c12",
      "dmaap.dmaapConsumerConfiguration.consumerGroup":"OpenDCAE-c12",
      "dmaap.dmaapConsumerConfiguration.timeoutMs":-1,

      "dmaap.dmaapProducerConfiguration.dmaapUserName":"admin",
      "dmaap.dmaapProducerConfiguration.dmaapUserPassword":"admin",
      "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName":"admin",
      "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword":"admin",
      "aai.aaiClientConfiguration.pnfUrl": "https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf",
      "aai.aaiClientConfiguration.baseUrl": "https://aai.onap.svc.cluster.local:8443/aai/v12",
      "aai.aaiClientConfiguration.aaiUserName":"AAI",
      "aai.aaiClientConfiguration.aaiUserPassword":"AAI",
      "aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors":true,
      "aai.aaiClientConfiguration.aaiServiceInstancePath":"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}",
      "aai.aaiClientConfiguration.aaiHeaders":{
        "X-FromAppId":"prh",
        "X-TransactionId":"9999",
        "Accept":"application/json",
        "Real-Time":"true",
        "Authorization":"Basic QUFJOkFBSQ=="
      },
      "security.trustStorePath":"/opt/app/prh/local/org.onap.prh.trust.jks",
      "security.trustStorePasswordPath":"change_it",
      "security.keyStorePath":"/opt/app/prh/local/org.onap.prh.p12",
      "security.keyStorePasswordPath":"change_it",
      "security.enableAaiCertAuth":false,
      "security.enableDmaapCertAuth":false,
      "streams_publishes":{
        "pnf-update":{
          "type": "message_router",
          "dmaap_info":{
            "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE"
          }
        },
        "pnf-ready":{
          "type": "message_router",
          "dmaap_info":{
            "topic_url":"http://dmaap-mr:2222/events/unauthenticated.PNF_READY"
          }
        }
      },
      "streams_subscribes":{
        "ves-reg-output":{
          "type": "message_router",
          "dmaap_info":{
            "topic_url":"http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT"
          }
        }
      }
    }
  }

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