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