Make Cassandra port configurable.
[sdc.git] / catalog-be / sdc-backend / chef-repo / cookbooks / sdc-catalog-be / templates / default / BE-configuration.yaml.erb
1 identificationHeaderFields:
2    - HTTP_IV_USER
3    - HTTP_CSP_FIRSTNAME
4    - HTTP_CSP_LASTNAME
5    - HTTP_IV_REMOTE_ADDRESS
6    - HTTP_CSP_WSTYPE
7
8 # catalog backend hostname
9 beFqdn: <%= @catalog_ip %>
10
11 # catalog backend http port
12 beHttpPort: <%= @catalog_port %>
13
14 # catalog backend http context
15 beContext: /sdc/rest/config/get
16
17 # catalog backend protocol
18 <% if node[:disableHttp] -%>
19 beProtocol: https
20 <% else %>
21 beProtocol: http
22 <% end -%>
23
24 # catalog backend ssl port
25 beSslPort: <%= @ssl_port %>
26 version: 1.1.0
27 released: 2012-11-30
28 toscaConformanceLevel: 9.0
29 minToscaConformanceLevel: 3.0
30
31 titanCfgFile: /var/lib/jetty/config/catalog-be/titan.properties
32 titanInMemoryGraph: false
33 titanLockTimeout: 1800
34 # The interval to try and reconnect to titan DB when it is down during ASDC startup:
35 titanReconnectIntervalInSeconds: 3
36
37 # The read timeout towards Titan DB when health check is invoked:
38 titanHealthCheckReadTimeout: 1
39
40 # The interval to try and reconnect to Elasticsearch when it is down during ASDC startup:
41
42 esReconnectIntervalInSeconds: 3
43 uebHealthCheckReconnectIntervalInSeconds: 15
44 uebHealthCheckReadTimeout: 4
45
46 # Protocols
47 protocols:
48    - http
49    - https
50
51 # Default imports
52 defaultImports:
53    - nodes:
54         file: nodes.yml
55    - datatypes:
56         file: data.yml
57    - capabilities:
58         file: capabilities.yml
59    - relationships:
60         file: relationships.yml
61    - groups:
62         file: groups.yml
63    - policies:
64         file: policies.yml
65    - annotations:
66         file: annotations.yml
67
68 # Users
69 users:
70     tom: passwd
71     bob: passwd
72
73
74 cassandraConfig:
75     cassandraHosts: [<%= @cassandra_ip %>]
76     cassandraPort: <%= @cassandra_port %>
77     localDataCenter: <%= @DC_NAME %>
78     reconnectTimeout : 30000
79     socketReadTimeout: <%= @socket_read_timeout %>
80     socketConnectTimeout: <%= @socket_connect_timeout %>
81     authenticate: true
82     username: <%= @cassandra_usr %>
83     password: <%= @cassandra_pwd %>
84     ssl: <%= @cassandra_ssl_enabled %>
85     truststorePath : /var/lib/jetty/etc/truststore
86     truststorePassword : <%= @cassandra_truststore_password %>
87     keySpaces:
88         - { name: dox,           replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['<%= @REP_STRING %>']}
89         - { name: sdcaudit,      replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['<%= @REP_STRING %>']}
90         - { name: sdcartifact,   replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['<%= @REP_STRING %>']}
91         - { name: sdccomponent,  replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['<%= @REP_STRING %>']}
92         - { name: sdcrepository, replicationStrategy: NetworkTopologyStrategy, replicationInfo: ['<%= @REP_STRING %>']}
93
94 #Application-specific settings of ES
95 elasticSearch:
96     # Mapping of index prefix to time-based frame. For example, if below is configured:
97     #
98     # - indexPrefix: auditingevents
99     #    creationPeriod: minute
100     #
101     # 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.
102     # Another object created on 2015-12-23 13:25:54, will enter "auditingevents-2015-12-23-13-25" index.
103     # If creationPeriod: month, both of the above will enter "auditingevents-2015-12" index.
104     #
105     # PLEASE NOTE: the timestamps are created in UTC/GMT timezone! This is needed so that timestamps will be correctly presented in Kibana.
106     #
107     # Legal values for creationPeriod - year, month, day, hour, minute, none (meaning no time-based behaviour).
108     #
109     # If no creationPeriod is configured for indexPrefix, default behavour is creationPeriod: month.
110
111     indicesTimeFrequency:
112       - indexPrefix: auditingevents
113         creationPeriod: month
114       - indexPrefix: monitoring_events
115         creationPeriod: month
116 artifactTypes:
117    - CHEF
118    - PUPPET
119    - SHELL
120    - YANG
121    - YANG_XML
122    - HEAT
123    - BPEL
124    - DG_XML
125    - MURANO_PKG
126    - WORKFLOW
127    - NETWORK_CALL_FLOW
128    - TOSCA_TEMPLATE
129    - TOSCA_CSAR
130    - AAI_SERVICE_MODEL
131    - AAI_VF_MODEL
132    - AAI_VF_MODULE_MODEL
133    - AAI_VF_INSTANCE_MODEL
134    - OTHER
135    - SNMP_POLL
136    - SNMP_TRAP
137    - GUIDE
138    - PLAN
139
140 licenseTypes:
141    - User
142    - Installation
143    - CPU
144
145 #Deployment artifacts placeHolder
146 resourceTypes: &allResourceTypes
147   - VFC
148   - CP
149   - VL
150   - VF
151   - CR
152   - VFCMT
153   - Abstract
154   - CVFC
155
156
157 deploymentResourceArtifacts:
158
159
160 deploymentResourceInstanceArtifacts:
161   heatEnv:
162       displayName: "HEAT ENV"
163       type: HEAT_ENV
164       description: "Auto-generated HEAT Environment deployment artifact"
165       fileExtension: "env"
166   VfHeatEnv:
167       displayName: "VF HEAT ENV"
168       type: HEAT_ENV
169       description: "VF Auto-generated HEAT Environment deployment artifact"
170       fileExtension: "env"
171
172 #tosca artifacts placeholders
173 toscaArtifacts:
174   assetToscaTemplate:
175       artifactName: -template.yml
176       displayName: Tosca Template
177       type: TOSCA_TEMPLATE
178       description: TOSCA representation of the asset
179   assetToscaCsar:
180       artifactName: -csar.csar
181       displayName: Tosca Model
182       type: TOSCA_CSAR
183       description: TOSCA definition package of the asset
184
185 #Informational artifacts placeHolder
186 excludeResourceCategory:
187   - Generic
188 excludeResourceType:
189   - PNF
190   - CR
191 informationalResourceArtifacts:
192   features:
193       displayName: Features
194       type: OTHER
195   capacity:
196       displayName: Capacity
197       type: OTHER
198   vendorTestResult:
199       displayName: Vendor Test Result
200       type: OTHER
201   testScripts:
202       displayName: Test Scripts
203       type: OTHER
204   CloudQuestionnaire:
205       displayName: Cloud Questionnaire (completed)
206       type: OTHER
207   HEATTemplateFromVendor:
208       displayName: HEAT Template from Vendor
209       type: HEAT
210   resourceSecurityTemplate:
211       displayName: Resource Security Template
212       type: OTHER
213
214 excludeServiceCategory:
215
216 informationalServiceArtifacts:
217   serviceArtifactPlan:
218       displayName: Service Artifact Plan
219       type: OTHER
220   summaryOfImpactsToECOMPElements:
221       displayName: Summary of impacts to ECOMP elements,OSSs, BSSs
222       type: OTHER
223   controlLoopFunctions:
224       displayName: Control Loop Functions
225       type: OTHER
226   dimensioningInfo:
227       displayName: Dimensioning Info
228       type: OTHER
229   affinityRules:
230       displayName: Affinity Rules
231       type: OTHER
232   operationalPolicies:
233       displayName: Operational Policies
234       type: OTHER
235   serviceSpecificPolicies:
236       displayName: Service-specific Policies
237       type: OTHER
238   engineeringRules:
239       displayName: Engineering Rules (ERD)
240       type: OTHER
241   distributionInstructions:
242       displayName: Distribution Instructions
243       type: OTHER
244   certificationTestResults:
245       displayName: TD Certification Test Results
246       type: OTHER
247   deploymentVotingRecord:
248       displayName: Deployment Voting Record
249       type: OTHER
250   serviceQuestionnaire:
251       displayName: Service Questionnaire
252       type: OTHER
253   serviceSecurityTemplate:
254       displayName: Service Security Template
255       type: OTHER
256
257 serviceApiArtifacts:
258   configuration:
259       displayName: Configuration
260       type: OTHER
261   instantiation:
262       displayName: Instantiation
263       type: OTHER
264   monitoring:
265       displayName: Monitoring
266       type: OTHER
267   reporting:
268       displayName: Reporting
269       type: OTHER
270   logging:
271       displayName: Logging
272       type: OTHER
273   testing:
274       displayName: Testing
275       type: OTHER
276
277
278 additionalInformationMaxNumberOfKeys: 50
279
280 systemMonitoring:
281     enabled: false
282     isProxy: false
283     probeIntervalInSeconds: 15
284 defaultHeatArtifactTimeoutMinutes: 60
285
286 serviceDeploymentArtifacts:
287     YANG_XML:
288         acceptedTypes:
289             - xml
290     VNF_CATALOG:
291         acceptedTypes:
292             - xml
293     MODEL_INVENTORY_PROFILE:
294         acceptedTypes:
295             - xml
296     MODEL_QUERY_SPEC:
297         acceptedTypes:
298             - xml
299     UCPE_LAYER_2_CONFIGURATION:
300         acceptedTypes:
301             - xml
302
303 #AAI Artifacts
304     AAI_SERVICE_MODEL:
305         acceptedTypes:
306             - xml
307     AAI_VF_MODULE_MODEL:
308         acceptedTypes:
309             - xml
310     AAI_VF_INSTANCE_MODEL:
311         acceptedTypes:
312             - xml
313     UCPE_LAYER_2_CONFIGURATION:
314         acceptedTypes:
315             - xml
316     OTHER:
317         acceptedTypes:
318
319 #PLAN
320     PLAN:
321         acceptedTypes:
322             - xml
323     WORKFLOW:
324         acceptedTypes:
325
326
327 resourceDeploymentArtifacts:
328     HEAT:
329         acceptedTypes:
330             - yaml
331             - yml
332         validForResourceTypes: *allResourceTypes
333     HEAT_VOL:
334         acceptedTypes:
335             - yaml
336             - yml
337         validForResourceTypes: *allResourceTypes
338     HEAT_NET:
339         acceptedTypes:
340             - yaml
341             - yml
342         validForResourceTypes: *allResourceTypes
343     HEAT_NESTED:
344         acceptedTypes:
345             - yaml
346             - yml
347         validForResourceTypes: *allResourceTypes
348     HEAT_ARTIFACT:
349         acceptedTypes:
350         validForResourceTypes: *allResourceTypes
351     CLOUD_TECHNOLOGY_SPECIFIC_ARTIFACT:
352         acceptedTypes:
353             - zip
354         validForResourceTypes: *allResourceTypes
355     YANG_XML:
356         acceptedTypes:
357             - xml
358         validForResourceTypes: *allResourceTypes
359     VNF_CATALOG:
360         acceptedTypes:
361             - xml
362         validForResourceTypes: *allResourceTypes
363     VF_LICENSE:
364         acceptedTypes:
365             - xml
366         validForResourceTypes: *allResourceTypes
367     VENDOR_LICENSE:
368         acceptedTypes:
369             - xml
370         validForResourceTypes: *allResourceTypes
371     MODEL_INVENTORY_PROFILE:
372         acceptedTypes:
373             - xml
374         validForResourceTypes: *allResourceTypes
375     MODEL_QUERY_SPEC:
376         acceptedTypes:
377             - xml
378         validForResourceTypes: *allResourceTypes
379     LIFECYCLE_OPERATIONS:
380         acceptedTypes:
381             - yaml
382             - yml
383         validForResourceTypes:
384             - VF
385             - VFC
386     VES_EVENTS:
387         acceptedTypes:
388             - yaml
389             - yml
390         validForResourceTypes:
391             - VFC
392             - CP
393             - VL
394             - VF
395             - CR
396             - VFCMT
397             - Abstract
398             - CVFC
399             - PNF
400     PERFORMANCE_COUNTER:
401         acceptedTypes:
402             - csv
403         validForResourceTypes: *allResourceTypes
404     APPC_CONFIG:
405         acceptedTypes:
406         validForResourceTypes:
407             - VF
408     DCAE_TOSCA:
409         acceptedTypes:
410             - yml
411             - yaml
412         validForResourceTypes:
413             - VF
414             - VFCMT
415     DCAE_JSON:
416         acceptedTypes:
417             - json
418         validForResourceTypes:
419             - VF
420             - VFCMT
421     DCAE_POLICY:
422         acceptedTypes:
423             - emf
424         validForResourceTypes:
425             - VF
426             - VFCMT
427     DCAE_DOC:
428         acceptedTypes:
429         validForResourceTypes:
430             - VF
431             - VFCMT
432     DCAE_EVENT:
433         acceptedTypes:
434         validForResourceTypes:
435             - VF
436             - VFCMT
437     AAI_VF_MODEL:
438         acceptedTypes:
439             - xml
440         validForResourceTypes:
441             - VF
442     AAI_VF_MODULE_MODEL:
443         acceptedTypes:
444             - xml
445         validForResourceTypes:
446             - VF
447     OTHER:
448         acceptedTypes:
449         validForResourceTypes:
450           - VFC
451           - CVFC
452           - CP
453           - VL
454           - VF
455           - VFCMT
456           - Abstract
457           - PNF
458     SNMP_POLL:
459         acceptedTypes:
460         validForResourceTypes: *allResourceTypes
461     SNMP_TRAP:
462         acceptedTypes:
463         validForResourceTypes: *allResourceTypes
464     PM_DICTIONARY:
465         acceptedTypes:
466             - yaml
467             - yml
468         validForResourceTypes:
469             - VF
470             - PNF
471     YANG_MODULE:
472         acceptedTypes:
473             - yang
474         validForResourceTypes:
475             - VF
476             - PNF
477     ANSIBLE_PLAYBOOK:
478         acceptedTypes:
479             - yaml
480             - yml
481         validForResourceTypes:
482             - VF
483             - PNF
484     ONBOARDED_PACKAGE:
485         acceptedTypes:
486             - csar
487         validForResourceTypes:
488             - VF
489             - PNF
490
491 #PLAN
492     PLAN:
493         acceptedTypes:
494             - xml
495         validForResourceTypes:
496             - VF
497             - VFC
498     WORKFLOW:
499         acceptedTypes:
500         validForResourceTypes: *allResourceTypes
501
502 resourceInstanceDeploymentArtifacts:
503     HEAT_ENV:
504         acceptedTypes:
505             - env
506     VF_MODULES_METADATA:
507         acceptedTypes:
508             - json
509     VES_EVENTS:
510         acceptedTypes:
511             - yaml
512             - yml
513     PERFORMANCE_COUNTER:
514         acceptedTypes:
515             - csv
516     DCAE_INVENTORY_TOSCA:
517         acceptedTypes:
518             - yml
519             - yaml
520     DCAE_INVENTORY_JSON:
521         acceptedTypes:
522             - json
523     DCAE_INVENTORY_POLICY:
524       acceptedTypes:
525             - emf
526     DCAE_INVENTORY_DOC:
527       acceptedTypes:
528     DCAE_INVENTORY_BLUEPRINT:
529       acceptedTypes:
530     DCAE_INVENTORY_EVENT:
531       acceptedTypes:
532     SNMP_POLL:
533         acceptedTypes:
534         validForResourceTypes: *allResourceTypes
535     SNMP_TRAP:
536         acceptedTypes:
537         validForResourceTypes: *allResourceTypes
538
539 #PLAN
540     PLAN:
541         acceptedTypes:
542             - xml
543
544 resourceInformationalArtifacts:
545     CHEF:
546         acceptedTypes:
547         validForResourceTypes: *allResourceTypes
548     PUPPET:
549         acceptedTypes:
550         validForResourceTypes: *allResourceTypes
551     SHELL:
552         acceptedTypes:
553         validForResourceTypes: *allResourceTypes
554     YANG:
555         acceptedTypes:
556         validForResourceTypes: *allResourceTypes
557     YANG_XML:
558         acceptedTypes:
559         validForResourceTypes: *allResourceTypes
560     HEAT:
561         acceptedTypes:
562         validForResourceTypes: *allResourceTypes
563     BPEL:
564         acceptedTypes:
565         validForResourceTypes: *allResourceTypes
566     DG_XML:
567         acceptedTypes:
568         validForResourceTypes: *allResourceTypes
569     MURANO_PKG:
570         acceptedTypes:
571         validForResourceTypes: *allResourceTypes
572     OTHER:
573         acceptedTypes:
574         validForResourceTypes:
575             - VFC
576             - CVFC
577             - CP
578             - VL
579             - VF
580             - CR
581             - VFCMT
582             - Abstract
583             - PNF
584     SNMP_POLL:
585         acceptedTypes:
586         validForResourceTypes: *allResourceTypes
587     SNMP_TRAP:
588         acceptedTypes:
589         validForResourceTypes: *allResourceTypes
590     GUIDE:
591         acceptedTypes:
592         validForResourceTypes:
593             - VF
594             - VFC
595             - CVFC
596             - PNF
597
598 resourceInformationalDeployedArtifacts:
599
600
601 requirementsToFulfillBeforeCert:
602
603 capabilitiesToConsumeBeforeCert:
604
605 unLoggedUrls:
606    - /sdc2/rest/healthCheck
607
608 cleanComponentsConfiguration:
609     cleanIntervalInMinutes: 1440
610     componentsToClean:
611        - Resource
612        - Service
613
614 artifactsIndex: resources
615
616 heatEnvArtifactHeader: ""
617 heatEnvArtifactFooter: ""
618
619 onboarding:
620     host: <%= node['ONBOARDING_BE_VIP'] %>
621     <% if node[:disableHttp] -%>
622     protocol: https
623     port: <%= node['ONBOARDING_BE'][:https_port] %> 
624     <% else %>
625     protocol: http
626     port: <%= node['ONBOARDING_BE'][:http_port] %> 
627     <% end -%>
628     downloadCsarUri: "/onboarding-api/v1.0/vendor-software-products/packages"
629     healthCheckUri: "/onboarding-api/v1.0/healthcheck"
630
631 dcae:
632     host: <%= @dcae_be_vip %>
633     <% if node[:disableHttp] -%>
634     protocol: https
635     port: <%= node['DCAE']['BE'][:https_port] %>
636     <% else %>
637     protocol: http
638     port: <%= node['DCAE']['BE'][:http_port] %>
639     <% end -%>
640     healthCheckUri: "/dcae/healthCheck"
641
642 # #GSS IDNS
643 switchoverDetector:
644     gBeFqdn:
645     gFeFqdn:
646     beVip: 1.2.3.4
647     feVip: 1.2.3.4
648     beResolveAttempts: 3
649     feResolveAttempts: 3
650     enabled: false
651     interval: 60
652     changePriorityUser: ecompasdc
653     changePriorityPassword: ecompasdc123
654     publishNetworkUrl:
655     publishNetworkBody: '{"note":"comment"}'
656     groups:
657       beSet: { changePriorityUrl: "", changePriorityBody: '{"name":"","uri":"","no_ad_redirection":false,"v4groups":{"failover_groups":["","","failover_policy":["FAILALL"]},"comment":"","intended_app_proto":"DNS"}'}
658       feSet: { changePriorityUrl: "", changePriorityBody: '{"name":"","uri":"","no_ad_redirection":false,"v4groups":{"failover_groups":["",""],"failover_policy":["FAILALL"]},"comment":"","intended_app_proto":"DNS"}'}
659
660 applicationL1Cache:
661     datatypes:
662         enabled: true
663         firstRunDelay: 10
664         pollIntervalInSec: 60
665
666 applicationL2Cache:
667     enabled: false
668     catalogL1Cache:
669         enabled: false
670         resourcesSizeInCache: 300
671         servicesSizeInCache: 200
672         productsSizeInCache: 100
673     queue:
674         syncIntervalInSecondes: 43200
675         waitOnShutDownInMinutes: 10
676         numberOfCacheWorkers: 4
677
678 toscaValidators:
679     stringMaxLength: 2500
680
681 disableAudit: false
682
683 vfModuleProperties:
684     min_vf_module_instances:
685         forBaseModule: 1
686         forNonBaseModule: 0
687     max_vf_module_instances:
688         forBaseModule: 1
689         forNonBaseModule:
690     initial_count:
691         forBaseModule: 1
692         forNonBaseModule: 0
693     vf_module_type:
694         forBaseModule: Base
695         forNonBaseModule: Expansion
696
697 genericAssetNodeTypes:
698   VFC: org.openecomp.resource.abstract.nodes.VFC
699   CVFC: org.openecomp.resource.abstract.nodes.VFC
700   VF : org.openecomp.resource.abstract.nodes.VF
701   CR : org.openecomp.resource.abstract.nodes.CR
702   PNF: org.openecomp.resource.abstract.nodes.PNF
703   Service: org.openecomp.resource.abstract.nodes.service
704
705 workloadContext: Production
706
707 environmentContext:
708     defaultValue: General_Revenue-Bearing
709     validValues:
710        - Critical_Revenue-Bearing
711        - Vital_Revenue-Bearing
712        - Essential_Revenue-Bearing
713        - Important_Revenue-Bearing
714        - Needed_Revenue-Bearing
715        - Useful_Revenue-Bearing
716        - General_Revenue-Bearing
717        - Critical_Non-Revenue
718        - Vital_Non-Revenue
719        - Essential_Non-Revenue
720        - Important_Non-Revenue
721        - Needed_Non-Revenue
722        - Useful_Non-Revenue
723        - General_Non-Revenue
724
725 dmaapConsumerConfiguration:
726     active: <%= @dmaap_active %>
727     hosts: localhost:3905
728     consumerGroup: sdc
729     consumerId: mama
730     timeoutMs: 15000
731     limit: 1
732     pollingInterval: 2
733     topic: topic
734     latitude: 32.109333
735     longitude: 34.855499
736     version: 1.0
737     serviceName: localhost/events
738     environment: TEST
739     partner: BOT_R
740     routeOffer: MR1
741     protocol: https
742     contenttype: application/json
743     dme2TraceOn: true
744     aftEnvironment: AFTUAT
745     aftDme2ConnectionTimeoutMs: 15000
746     aftDme2RoundtripTimeoutMs: 240000
747     aftDme2ReadTimeoutMs: 50000
748     dme2preferredRouterFilePath: DME2preferredRouter.txt
749     timeLimitForNotificationHandleMs: 120000
750     credential:
751         username: user
752         password:
753
754 dmeConfiguration:
755     dme2Search: DME2SEARCH
756     dme2Resolve: DME2RESOLVE
757
758 excludedPolicyTypesMapping:
759    # VF:
760     #  - a.b.c
761     #  - c.d.e
762     #CR:
763     #  - x.y.z
764
765 excludedGroupTypesMapping:
766     CR:
767        - org.openecomp.groups.VfModule
768        - org.openecomp.groups.heat.HeatStack
769        - tosca.groups.Root
770     PNF:
771        - org.openecomp.groups.VfModule
772        - org.openecomp.groups.heat.HeatStack
773        - tosca.groups.Root
774     VF:
775        - org.openecomp.groups.VfModule
776        - org.openecomp.groups.heat.HeatStack
777        - tosca.groups.Root
778     Service:
779        - org.openecomp.groups.VfModule
780        - org.openecomp.groups.heat.HeatStack
781        - tosca.groups.Root
782
783 healthStatusExclude:
784    - DE
785    - DMAAP
786    - DCAE