summaryrefslogtreecommitdiffstats
path: root/asdctool/sdc-cassandra-init/chef-repo/cookbooks/cassandra-actions/templates/default/configuration.yaml.erb
blob: ab27886a477079e9ac95d0939bfef7fa91462497 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<
# OpenECOMP SDC

---
---


# Introduction

OpenECOMP SDC is delivered with 5 Docker containers:
1. sdc-FE	- frontend SDC application running on jetty server
2. sdc-BE	- backend SDC application running on jetty server
3. sdc-kbn	- hosting kibana application
4. sdc-cs	- hosting cassandra
5. sdc-es	- hosting elastic search

All containers runs on the same machine and can be started by runnin the command:
/data/scripts/docker_run.sh -e <environment name> -r <release> -p <docker-hub-port>
Example: /data/scripts/docker_run.sh -e OS-ETE-DFW -p 51220


# Compiling SDC

SDC is built from several projects, while "sdc-main" contains the main pom.xml for all project:
- catalog-be		- backend code
- catalog-fe		- frontend java code (servlet, proxy)
- catalog-dao		- database layer
- catalog-model		- data model of the application
- catalog-ui		- front end code (javascript, html, css)
- common-app-api	- common code for frontend and backend
- common-be			- utilities, datatypes and enums
- security-utils	- handle encryption/decryption of passwords

SDC projects can be compiled easily using maven command: `mvn clean install`. 
In order to build all projects, enter to sdc-main project and run the command: `mvn clean install`.
By default unit test will run when compiling

** igor **
Docker containers are build with the following profile 
`-P docker -Ddocker.buildArg.chef_repo_branch_name=bugfix/external_adress -Ddocker.buildArg.chef_repo_git_username=git -Ddocker.buildArg.chef_repo_address=23.253.149.175/SDC -Ddocker.buildArg.chef_repo_git_name=chef-repo`


# Getting the containers

***to be changed for rrelease*** OpenECOMP SDC containers are stored on the Rackspace Nexus Docker Registry

The following Docker images are the actual deployment images used for running SDC

| Name    | Tag       | Description                                                                                                                   |
|---------|-----------|-------------------------------------------------------------------------------------------------------------------------------|
| sdc-FE  | 1610.2.16 | Contains Jetty + OpenJDK + SDC frontend code + **3rd party jars**                                                             |
| sdc-BE  | 1610.2.16 | Contains Jetty + OpenJDK + SDC backend code + **3rd party jars**                                                              |
| sdc-kbn | 1610.2.16 | Contains nodeJs + Kibana application                                                                                          |
| sdc-cs  | 1610.2.16 | OpenJDK + Contains cassandra application                                                                                      |
| sdc-es  | 1610.2.16 | Elastic search application                                                                                                    |


*********************** Israel ************************
# Starting SDC
There are several ways to start OpenECOMP SDC:
TBD - Israel

# Accessing SDC
SDC UI can be accessed from:

### Ecomp portal
Login to ecomp portal URL with user that has permission for SDC application.
Define in your hosts file the following:
<ip address of SDC application> sdc.api.simpledemo.openecomp.org
<ip address of Ecomp portal URL> portal.api.simpledemo.openecomp.org
Open browser and navigate to: http://portal.api.simpledemo.openecomp.org:8989/ECOMPPORTAL/login.htm

### Webseal/SDC simulator
This options is for developers to run locally SDC

# SDC Simulator

This options is for developers to run locally SDC
SDC Simulator is a project that enables emulation of web server that provides security policy and sign-on to the SDC component in dev environments.

  - Provides sign on to the basic user roles/functionalities
  - Creation of basic user accounts

# Docker compilation - Docker Maven Build Profile (io.fabric8 maven Plugin)

If you are using onap vagrant you can deploy the simulator by:

Set up the DOCKER_HOST environmental variable

To set environmental variable in Windows (the docker engine environment):
- Run `cmd`
-- Issue command `set NAME=VAL
Example: set DOCKER_HOST=tcp://127.0.0.1:2375
--To check if the variable set succeeded issue `echo %DOCKER_HOST%`

- To compile sdc-simulator docker:
1. Run `mvn clean install -Ddocker.buildArg.http_proxy=<http_proxy> -Ddocker.buildArg.https_proxy=<https_proxy> -P docker`
-- The proxy arguments are passed and used as environmental variables in Dockerfiles 
2. Copy the script /webseal-simulator/scripts/simulator_docker_run.sh to the docker engine environment and run:
`simulator_docker_run.sh -r 1.1-STAGING-latest`
3. Run `docker ps` to verify that sdc-simulator docker is up and running.
4. Enter to UI: `http://<ip address>:8285/login`

# Docker compilation - Docker Engine

1. Build web simulator WAR file: run `mvn clean install` on project “webseal simulator�. This will generate war file (WSSimulator.war) in the target folder.
2. Ftp war file: webseal-simulator/sdc-simulator folder to your localhost vagrant machine which runs docker engine daemon.
-- Check that WSSimulator.war exists after first step No.1 in webseal-simulator/sdc-simulator folder.
3. Run `docker build -t openecomp/sdc-simulator:1.1-STAGING-latest <PATH/sdc-simulator>`
Example: docker build -t openecomp/sdc-simulator:1.1-STAGING-latest /tmp/docker/sdc-simulator/
-- If running behind a proxy:
`docker build --build-arg http_proxy=http://URL:PORT --build-arg https_proxy=http://URL:PORT -t openecomp/sdc-simulator:1.1-STAGING-latest /tmp/docker/sdc-simulator/`
4. Validate that images pushed to the local repo by executing `docker images`
5. Copy the script /webseal-simulator/scripts/simulator_docker_run.sh to the docker engine environment and run: `simulator_docker_run.sh -r 1.1-STAGING-latest`
6. Run `docker ps` to verify that sdc-simulator docker is up and running.
7. Enter to UI: `http://<ip address>:8285/login`

# WAR compilation

  - To compile WSSimulator.war:
1. Build web simulator WAR file: run `mvn clean install` on project "webseal simulator". This will generate war file (WSSimulator.war) in the target folder.
2. Ftp war file: webseal-simulator\target\WSSimulator.war to your localhost vagrant machine: /home/vagrant/webseal-simulator/webapps folder
3. Ftp configuration file: webseal-simulator\src\main\resources\webseal.conf to your localhost vagrant machine: /home/vagrant/webseal-simulator/config
4. Add users to simulator: open configuration file - webseal.conf and add new user to the user list.
   Note: You need to define the user in the SDC as well.
5. To run the simulator, enter to your local vagrant and run: startWebsealSimulator.sh
-- Restart the simulator:
   Stop the simulator: stopWebsealSimulator.sh
   Start the simulator: startWebsealSimulator.sh
6. Enter to UI: http://<ip address>:8285/login


### SDC import normatives from CLI
SDC needs to work with predefined basic normatives, in order to update the database with the normatives need to:
1. From catalog-be project copy:
   src\main\resources\import\tosca -> to <machine ip address>:catalog-be/import/tosca
   src\main\resources\scripts\import\tosca ->to <machine ip address>:catalog-be/scripts/import/tosca
2. cd catalog-be/scripts/import/tosca
3. Run: python importNormativeAll.py
4. Wait until all normatives are loaded to the database


### SDC APIs
TBD

##### Main API endpoints in the first open source release 

- ***to be completed*** APIHandler health checks
TBD

# Configuration of SDC
TBD

Here are the main parameters you could change: 
TBD

The credentials are defined in 2 places:
TBD

# Logging
TBD

### Jetty
TBD

### Debuging
TBD

# Testing SDC Functionalities
TBD

### Frontend Local Env - onboarding

Steps:
------
Install nodejs & gulp
1. download nodejs from here: https://nodejs.org/en/ (take the "current" version with latest features) & install it.
2. install gulp by running the following command: npm install --global gulp-cli

Install DOX-UI a:
-----------------
1. pull for latest changes
2. go to folder dox-sequence-diagram-ui
3. run npm install
4. wait for it...
5. go to folder dox-ui
6. run npm install
7. create a copy of devConfig.defaults.json file and name it devConfig.json (we already configured git to ignore it so it will not be pushed)
8. in that file, populate the fields of the IP addresses of your BE machine you'd like to connect (pay attention, it is a JSON file): For example http://<host>:<port>
9. after everything was successful, run gulp
10. after server was up, your favorite UI will wait for you at: http://localhost:9000/sdc1/proxy-designer1#/onboardVendor

Troubleshooting:
----------------
| Problem                       |   Why is this happening | Solution                                                                                   |
--------------------------------------------------------------------------------------------------------------------------------------------------------
| npm cannot reach destination  | onboarding proxy        | When within onboarding network, you should set onboarding proxy to NPM as the following:   |
|                               |                         | npm config set proxy http://genproxy:8080                                                  |
|                               |                         | npm config set https-proxy http://genproxy:8080                                            |
|                               |                         |                                                                                            |
| git protocol is blocked       | onboarding network      | When within onboarding network, you should set globally that when git                      |
| and cannot connect            | rules for protocols     | protocol is used, then it will be replaced with "https"                                    |
|                               |                         | git config --global url."https://".insteadOf git://                                        |
--------------------------------------------------------------------------------------------------------------------------------------------------------

# Getting Help

*** to be completed on rrelease ***

SDC@lists.openecomp.org

SDC Javadoc and Maven s
identificationHeaderFields:
   - HTTP_IV_USER
   - HTTP_CSP_FIRSTNAME
   - HTTP_CSP_LASTNAME
   - HTTP_IV_REMOTE_ADDRESS
   - HTTP_CSP_WSTYPE


# catalog backend hostname
beFqdn: <%= @host_ip %>

# catalog backend http port
beHttpPort: <%= @catalog_port %>

# catalog backend http context
beContext: /sdc/rest/config/get

# catalog backend protocol
<% if node[:disableHttp] -%>
beProtocol: https
<% else %>
beProtocol: http
<% end -%>

# catalog backend ssl port
beSslPort: <%= @ssl_port %>
version: 1.0
released: 2012-11-30
toscaConformanceLevel: 9.0
minToscaConformanceLevel: 3.0

janusGraphCfgFile: <%= @janusgraph_Path %>/janusgraph.properties
janusGraphInMemoryGraph: false
janusGraphLockTimeout: 1800
# The interval to try and reconnect to JanusGraph DB when it is down during ASDC startup:
janusGraphReconnectIntervalInSeconds: 3

# The read timeout towards JanusGraph DB when health check is invoked:
janusGraphHealthCheckReadTimeout: 1

# The interval to try and reconnect to Elasticsearch when it is down during ASDC startup:

esReconnectIntervalInSeconds: 3
uebHealthCheckReconnectIntervalInSeconds: 15
uebHealthCheckReadTimeout: 4

# Protocols
protocols:
   - http
   - https

# Default imports
defaultImports:
   - nodes:
        file: nodes.yml
   - datatypes:
        file: data.yml
   - capabilities:
        file: capabilities.yml
   - relationships:
        file: relationships.yml
   - groups:
        file: groups.yml
   - policies:
        file: policies.yml

# Users
users:
    tom: passwd
    bob: passwd


cassandraConfig:
    cassandraHosts: [<%= @cassandra_ip %>]
    cassandraPort: <%= @cassandra_port %>
    localDataCenter: <%= @DC_NAME %>
    reconnectTimeout : 30000
    socketReadTimeout: <%= @socket_read_timeout %>
    socketConnectTimeout: <%= @socket_connect_timeout %>
    authenticate: true
    username: asdc_user
    password: Aa1234%^!
    ssl: false
    truststorePath : /config/.truststore
    truststorePassword : Aa123456
    keySpaces:
        - { name: dox, replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['<%= @DC_NAME %>','<%= @rep_factor %>']}
        - { name: sdcaudit, replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['<%= @DC_NAME %>','<%= @rep_factor %>']}
        - { name: sdcartifact, replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['<%= @DC_NAME %>','<%= @rep_factor %>']}
        - { name: sdccomponent, replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['<%= @DC_NAME %>','<%= @rep_factor %>']}
        - { name: sdcrepository, replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['<%= @DC_NAME %>','<%= @rep_factor %>']}

#Application-specific settings of ES
elasticSearch:
    # Mapping of index prefix to time-based frame. For example, if below is configured:
    #
    # - indexPrefix: auditingevents
    #    creationPeriod: minute
    #
    # then ES object of type which is mapped to "auditingevents-*" template, and created on 2015-12-23 13:24:54, will enter "auditingevents-2015-12-23-13-24" index.
    # Another object created on 2015-12-23 13:25:54, will enter "auditingevents-2015-12-23-13-25" index.
    # If creationPeriod: month, both of the above will enter "auditingevents-2015-12" index.
    #
    # PLEASE NOTE: the timestamps are created in UTC/GMT timezone! This is needed so that timestamps will be correctly presented in Kibana.
    #
    # Legal values for creationPeriod - year, month, day, hour, minute, none (meaning no time-based behaviour).
    #
    # If no creationPeriod is configured for indexPrefix, default behavour is creationPeriod: month.

    indicesTimeFrequency:
      - indexPrefix: auditingevents
        creationPeriod: month
      - indexPrefix: monitoring_events
        creationPeriod: month

artifactTypes:
   - CHEF
   - PUPPET
   - SHELL
   - YANG
   - YANG_XML
   - HEAT
   - BPEL
   - DG_XML
   - MURANO_PKG
   - WORKFLOW
   - NETWORK_CALL_FLOW
   - TOSCA_TEMPLATE
   - TOSCA_CSAR
   - AAI_SERVICE_MODEL
   - AAI_VF_MODEL
   - AAI_VF_MODULE_MODEL
   - AAI_VF_INSTANCE_MODEL
   - OTHER
   - SNMP_POLL
   - SNMP_TRAP
   - GUIDE
   - PLAN
   - CONTROLLER_BLUEPRINT_ARCHIVE

licenseTypes:
   - User
   - Installation
   - CPU

#Deployment artifacts placeHolder
resourceTypes: &allResourceTypes
  - VFC
  - CP
  - VL
  - VF
  - VFCMT
  - Abstract
  - CVFC


deploymentResourceArtifacts:
  cdsBlueprint:
      displayName: "CDS Blueprint"
      type: CONTROLLER_BLUEPRINT_ARCHIVE
      description: "CDS deployment artifact"
      fileExtension: "zip"

deploymentResourceInstanceArtifacts:
  heatEnv:
      displayName: "HEAT ENV"
      type: HEAT_ENV
      description: "Auto-generated HEAT Environment deployment artifact"
      fileExtension: "env"
  VfHeatEnv:
      displayName: "VF HEAT ENV"
      type: HEAT_ENV
      description: "VF Auto-generated HEAT Environment deployment artifact"
      fileExtension: "env"

#tosca artifacts placeholders
toscaArtifacts:
  assetToscaTemplate:
      artifactName: -template.yml
      displayName: Tosca Template
      type: TOSCA_TEMPLATE
      description: TOSCA representation of the asset
  assetToscaCsar:
      artifactName: -csar.csar
      displayName: Tosca Model
      type: TOSCA_CSAR
      description: TOSCA definition package of the asset

#Informational artifacts placeHolder
excludeResourceCategory:
  - Generic
excludeResourceType:
  - PNF
informationalResourceArtifacts:
  features:
      displayName: Features
      type: OTHER
  capacity:
      displayName: Capacity
      type: OTHER
  vendorTestResult:
      displayName: Vendor Test Result
      type: OTHER
  testScripts:
      displayName: Test Scripts
      type: OTHER
  CloudQuestionnaire:
      displayName: Cloud Questionnaire (completed)
      type: OTHER
  HEATTemplateFromVendor:
      displayName: HEAT Template from Vendor
      type: HEAT
  resourceSecurityTemplate:
      displayName: Resource Security Template
      type: OTHER

excludeServiceCategory:

informationalServiceArtifacts:
  serviceArtifactPlan:
      displayName: Service Artifact Plan
      type: OTHER
  summaryOfImpactsToECOMPElements:
      displayName: Summary of impacts to ECOMP elements,OSSs, BSSs
      type: OTHER
  controlLoopFunctions:
      displayName: Control Loop Functions
      type: OTHER
  dimensioningInfo:
      displayName: Dimensioning Info
      type: OTHER
  affinityRules:
      displayName: Affinity Rules
      type: OTHER
  operationalPolicies:
      displayName: Operational Policies
      type: OTHER
  serviceSpecificPolicies:
      displayName: Service-specific Policies
      type: OTHER
  engineeringRules:
      displayName: Engineering Rules (ERD)
      type: OTHER
  distributionInstructions:
      displayName: Distribution Instructions
      type: OTHER
  certificationTestResults:
      displayName: TD Certification Test Results
      type: OTHER
  deploymentVotingRecord:
      displayName: Deployment Voting Record
      type: OTHER
  serviceQuestionnaire:
      displayName: Service Questionnaire
      type: OTHER
  serviceSecurityTemplate:
      displayName: Service Security Template
      type: OTHER

serviceApiArtifacts:
  configuration:
      displayName: Configuration
      type: OTHER
  instantiation:
      displayName: Instantiation
      type: OTHER
  monitoring:
      displayName: Monitoring
      type: OTHER
  reporting:
      displayName: Reporting
      type: OTHER
  logging:
      displayName: Logging
      type: OTHER
  testing:
      displayName: Testing
      type: OTHER

additionalInformationMaxNumberOfKeys: 50

systemMonitoring:
    enabled: false
    isProxy: false
    probeIntervalInSeconds: 15

defaultHeatArtifactTimeoutMinutes: 60

serviceDeploymentArtifacts:
    CONTROLLER_BLUEPRINT_ARCHIVE:
        acceptedTypes:
            - zip
    YANG_XML:
        acceptedTypes:
            - xml
    VNF_CATALOG:
        acceptedTypes:
            - xml
    MODEL_INVENTORY_PROFILE:
        acceptedTypes:
            - xml
    MODEL_QUERY_SPEC:
        acceptedTypes:
            - xml

#AAI Artifacts
    AAI_SERVICE_MODEL:
        acceptedTypes:
            - xml
    AAI_VF_MODULE_MODEL:
        acceptedTypes:
            - xml
    AAI_VF_INSTANCE_MODEL:
        acceptedTypes:
            - xml
    UCPE_LAYER_2_CONFIGURATION:
        acceptedTypes:
            - xml
    OTHER:
        acceptedTypes:

#PLAN
    PLAN:
        acceptedTypes:
            - xml

resourceDeploymentArtifacts:
    HEAT:
        acceptedTypes:
            - yaml
            - yml
        validForResourceTypes: *allResourceTypes
    HEAT_VOL:
        acceptedTypes:
            - yaml
            - yml
        validForResourceTypes: *allResourceTypes
    HEAT_NET:
        acceptedTypes:
            - yaml
            - yml
        validForResourceTypes: *allResourceTypes
    HEAT_NESTED:
        acceptedTypes:
            - yaml
            - yml
        validForResourceTypes: *allResourceTypes
    HEAT_ARTIFACT:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    CLOUD_TECHNOLOGY_SPECIFIC_ARTIFACT:
        acceptedTypes:
            - zip
            - tgz
            - csar
        validForResourceTypes: *allResourceTypes
    YANG_XML:
        acceptedTypes:
            - xml
        validForResourceTypes: *allResourceTypes
    VNF_CATALOG:
        acceptedTypes:
            - xml
        validForResourceTypes: *allResourceTypes
    VF_LICENSE:
        acceptedTypes:
            - xml
        validForResourceTypes: *allResourceTypes
    VENDOR_LICENSE:
        acceptedTypes:
            - xml
        validForResourceTypes: *allResourceTypes
    MODEL_INVENTORY_PROFILE:
        acceptedTypes:
            - xml
        validForResourceTypes: *allResourceTypes
    MODEL_QUERY_SPEC:
        acceptedTypes:
            - xml
        validForResourceTypes: *allResourceTypes
    LIFECYCLE_OPERATIONS:
        acceptedTypes:
            - yaml
            - yml
        validForResourceTypes:
            - VF
            - VFC
    VES_EVENTS:
        acceptedTypes:
            - yaml
            - yml
        validForResourceTypes:
            - VFC
            - CP
            - VL
            - VF
            - VFCMT
            - Abstract
            - CVFC
            - PNF
    PERFORMANCE_COUNTER:
        acceptedTypes:
            - csv
        validForResourceTypes: *allResourceTypes
    APPC_CONFIG:
        acceptedTypes:
        validForResourceTypes:
            - VF
    DCAE_TOSCA:
        acceptedTypes:
            - yml
            - yaml
        validForResourceTypes:
            - VF
            - VFCMT
    DCAE_JSON:
        acceptedTypes:
            - json
        validForResourceTypes:
            - VF
            - VFCMT
    DCAE_POLICY:
        acceptedTypes:
            - emf
        validForResourceTypes:
            - VF
            - VFCMT
    DCAE_DOC:
        acceptedTypes:
        validForResourceTypes:
            - VF
            - VFCMT
    DCAE_EVENT:
        acceptedTypes:
        validForResourceTypes:
            - VF
            - VFCMT
    AAI_VF_MODEL:
        acceptedTypes:
            - xml
        validForResourceTypes:
            - VF
    AAI_VF_MODULE_MODEL:
        acceptedTypes:
            - xml
        validForResourceTypes:
            - VF
    OTHER:
        acceptedTypes:
        validForResourceTypes:
          - VFC
          - CP
          - VL
          - VF
          - VFCMT
          - Abstract
          - CVFC
          - PNF
    SNMP_POLL:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    SNMP_TRAP:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    PM_DICTIONARY:
        acceptedTypes:
            - yaml
            - yml
        validForResourceTypes:
            - VF
            - PNF
    YANG_MODULE:
        acceptedTypes:
            - yang
        validForResourceTypes:
            - VF
            - PNF
    ANSIBLE_PLAYBOOK:
        acceptedTypes:
            - yaml
            - yml
        validForResourceTypes:
            - VF
            - PNF
    ONBOARDED_PACKAGE:
        acceptedTypes:
            - csar
        validForResourceTypes:
            - VF
            - PNF
    CONTROLLER_BLUEPRINT_ARCHIVE:
        acceptedTypes:
            - zip
        validForResourceTypes:
            - VF
            - PNF

#PLAN
    PLAN:
        acceptedTypes:
            - xml
        validForResourceTypes:
            - VF
            - VFC

resourceInstanceDeploymentArtifacts:
    HEAT_ENV:
        acceptedTypes:
            - env
    VF_MODULES_METADATA:
        acceptedTypes:
            - json
    VES_EVENTS:
        acceptedTypes:
            - yaml
            - yml
    PERFORMANCE_COUNTER:
        acceptedTypes:
            - csv
    DCAE_INVENTORY_TOSCA:
        acceptedTypes:
            - yml
            - yaml
    DCAE_INVENTORY_JSON:
        acceptedTypes:
            - json
    DCAE_INVENTORY_POLICY:
      acceptedTypes:
            - emf
    DCAE_INVENTORY_DOC:
      acceptedTypes:
    DCAE_INVENTORY_BLUEPRINT:
      acceptedTypes:
    DCAE_INVENTORY_EVENT:
      acceptedTypes:
    SNMP_POLL:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    SNMP_TRAP:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes

#PLAN
    PLAN:
        acceptedTypes:
            - xml

resourceInformationalArtifacts:
    CHEF:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    PUPPET:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    SHELL:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    YANG:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    YANG_XML:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    HEAT:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    BPEL:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    DG_XML:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    MURANO_PKG:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    OTHER:
        acceptedTypes:
        validForResourceTypes:
            - VFC
            - CVFC
            - CP
            - VL
            - VF
            - VFCMT
            - Abstract
            - PNF
    SNMP_POLL:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    SNMP_TRAP:
        acceptedTypes:
        validForResourceTypes: *allResourceTypes
    GUIDE:
        acceptedTypes:
        validForResourceTypes:
            - VF
            - VFC
            - CVFC
            - PNF

resourceInformationalDeployedArtifacts:

requirementsToFulfillBeforeCert:

capabilitiesToConsumeBeforeCert:

unLoggedUrls:
   - /sdc2/rest/healthCheck

cleanComponentsConfiguration:
    cleanIntervalInMinutes: 1440
    componentsToClean:
       - Resource
       - Service

artifactsIndex: resources

heatEnvArtifactHeader: ""
heatEnvArtifactFooter: ""

onboarding:
    protocol: http
    host: <%= @host_ip %>
    port: <%= @catalog_port %>
    downloadCsarUri: "/onboarding-api/v1.0/vendor-software-products/packages"
    healthCheckUri: "/onboarding-api/v1.0/healthcheck"

dcae:
    protocol: http
    host: <%= @host_ip %>
    port: <%= @catalog_port %>
    healthCheckUri: "/dcae/healthCheck"

# #GSS IDNS
switchoverDetector:
    gBeFqdn:
    gFeFqdn:
    beVip: 1.2.3.4
    feVip: 1.2.3.4
    beResolveAttempts: 3
    feResolveAttempts: 3
    enabled: false
    interval: 60
    changePriorityUser: ecompasdc
    changePriorityPassword: ecompasdc123
    publishNetworkUrl:
    publishNetworkBody: '{"note":"comment"}'
    groups:
      beSet: { changePriorityUrl: "", changePriorityBody: '{"name":"","uri":"","no_ad_redirection":false,"v4groups":{"failover_groups":["","","failover_policy":["FAILALL"]},"comment":"","intended_app_proto":"DNS"}'}
      feSet: { changePriorityUrl: "", changePriorityBody: '{"name":"","uri":"","no_ad_redirection":false,"v4groups":{"failover_groups":["",""],"failover_policy":["FAILALL"]},"comment":"","intended_app_proto":"DNS"}'}

applicationL1Cache:
    datatypes:
        enabled: true
        firstRunDelay: 10
        pollIntervalInSec: 60

applicationL2Cache:
    enabled: false
    catalogL1Cache:
        enabled: false
        resourcesSizeInCache: 300
        servicesSizeInCache: 200
        productsSizeInCache: 100
    queue:
        syncIntervalInSecondes: 43200
        waitOnShutDownInMinutes: 10
        numberOfCacheWorkers: 4

toscaValidators:
    stringMaxLength: 2500

disableAudit: false
vfModuleProperties:
    min_vf_module_instances:
        forBaseModule: 1
        forNonBaseModule: 0
    max_vf_module_instances:
        forBaseModule: 1
        forNonBaseModule:
    initial_count:
        forBaseModule: 1
        forNonBaseModule: 0
    vf_module_type:
        forBaseModule: Base
        forNonBaseModule: Expansion

genericAssetNodeTypes:
  VFC: org.openecomp.resource.abstract.nodes.VFC
  CVFC: org.openecomp.resource.abstract.nodes.VFC
  VF : org.openecomp.resource.abstract.nodes.VF
  PNF: org.openecomp.resource.abstract.nodes.PNF
  Service: org.openecomp.resource.abstract.nodes.service

workloadContext: Production

environmentContext:
    defaultValue: General_Revenue-Bearing
    validValues:
       - Critical_Revenue-Bearing
       - Vital_Revenue-Bearing
       - Essential_Revenue-Bearing
       - Important_Revenue-Bearing
       - Needed_Revenue-Bearing
       - Useful_Revenue-Bearing
       - General_Revenue-Bearing
       - Critical_Non-Revenue
       - Vital_Non-Revenue
       - Essential_Non-Revenue
       - Important_Non-Revenue
       - Needed_Non-Revenue
       - Useful_Non-Revenue
       - General_Non-Revenue

gabConfig:
  - artifactType: 'VES_EVENTS'
    pathsAndNamesDefinitions:
      -
        friendlyName: "Action"
        path: "event.action[2]"
        searchable: "true"
      -
        friendlyName: "Comment"
        path: "event.comment"
        searchable: "true"
      -
        friendlyName: "Alarm Additional Information"
        path: "event.structure.faultFields.structure.alarmAdditionalInformation.comment"
        searchable: "true"

dmaapConsumerConfiguration:
    hosts: localhost:3905
    consumerGroup: sdc
    consumerId: mama
    timeoutMs: 15000
    limit: 1
    pollingInterval: 2
    topic: topic
    latitude: 32.109333
    longitude: 34.855499
    version: 1.0
    serviceName: localhost/events
    environment: TEST
    partner: BOT_R
    routeOffer: MR1
    protocol: https
    contenttype: application/json
    dme2TraceOn: true
    aftEnvironment: AFTUAT
    aftDme2ConnectionTimeoutMs: 15000
    aftDme2RoundtripTimeoutMs: 240000
    aftDme2ReadTimeoutMs: 50000
    dme2preferredRouterFilePath: DME2preferredRouter.txt
    timeLimitForNotificationHandleMs: 120000
    credential:
        username: user
        password:

dmeConfiguration:
    dme2Search: DME2SEARCH
    dme2Resolve: DME2RESOLVE

excludedPolicyTypesMapping:
   # VF:
    #  - a.b.c
    #  - c.d.e
    #CR:
    #  - x.y.z

excludedGroupTypesMapping:
    CR:
       - org.openecomp.groups.VfModule
       - org.openecomp.groups.heat.HeatStack
       - tosca.groups.Root
    VF:
       - org.openecomp.groups.VfModule
       - org.openecomp.groups.heat.HeatStack
       - tosca.groups.Root
    Service:
       - org.openecomp.groups.VfModule
       - org.openecomp.groups.heat.HeatStack
       - tosca.groups.Root

healthStatusExclude:
   - DE
   - DMAPP
   - DCAE