From: Arul.Nambi Date: Thu, 16 Aug 2018 14:19:32 +0000 (-0400) Subject: Spring-boot config upgrade X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Ftest-config.git;a=commitdiff_plain;h=dc507d873105b7d6ef7539552304f00f744057df Spring-boot config upgrade Issue-ID: AAI-1379 Change-Id: I6dfbb0f14ba66a7f1cd84ac5218217e68ad0ae16 Signed-off-by: Arul.Nambi --- diff --git a/docker-compose-app.yml b/docker-compose-app.yml index d2395d2..cd26407 100644 --- a/docker-compose-app.yml +++ b/docker-compose-app.yml @@ -149,7 +149,7 @@ services: hostname: sparky-be volumes: - ${UI_LOGS}:/logs - - /opt/test-config/sparky/appconfig:/opt/app/sparky/appconfig + - /opt/test-config/sparky/appconfig:/opt/app/sparky/config ports: - 9517:9517 environment: diff --git a/sparky/appconfig/application-camel.properties b/sparky/appconfig/application-camel.properties new file mode 100644 index 0000000..9cd68cb --- /dev/null +++ b/sparky/appconfig/application-camel.properties @@ -0,0 +1,3 @@ +camel.springboot.name = SparkyCamelContext +#camel.springboot.xmlRests = file:${CONFIG_HOME}/camel-rests/*.xml +camel.component.servlet.mapping.context-path=/rest/* \ No newline at end of file diff --git a/sparky/appconfig/application-fe-prod.properties b/sparky/appconfig/application-fe-prod.properties new file mode 100644 index 0000000..608c829 --- /dev/null +++ b/sparky/appconfig/application-fe-prod.properties @@ -0,0 +1,7 @@ + +server.servlet.context-path=/services/aai/webapp/ + +# +# attempt to externalize ui JS classes + resources +# +spring.resources.static-locations=file:${APP_HOME}/static/ \ No newline at end of file diff --git a/sparky/appconfig/sparky-http-config.properties b/sparky/appconfig/application-http.properties similarity index 100% rename from sparky/appconfig/sparky-http-config.properties rename to sparky/appconfig/application-http.properties diff --git a/sparky/appconfig/application-oxm-override.properties b/sparky/appconfig/application-oxm-override.properties new file mode 100644 index 0000000..ea08a73 --- /dev/null +++ b/sparky/appconfig/application-oxm-override.properties @@ -0,0 +1 @@ +oxm.apiVersionOverride=V11 diff --git a/sparky/appconfig/application-oxm-schema-prod.properties b/sparky/appconfig/application-oxm-schema-prod.properties new file mode 100644 index 0000000..33d0bd8 --- /dev/null +++ b/sparky/appconfig/application-oxm-schema-prod.properties @@ -0,0 +1 @@ +oxm.schemaNodeDir=/opt/app/sparky/oxm diff --git a/sparky/appconfig/application-resources.properties b/sparky/appconfig/application-resources.properties new file mode 100644 index 0000000..0be2b26 --- /dev/null +++ b/sparky/appconfig/application-resources.properties @@ -0,0 +1,8 @@ +resources.hostname=aai.api.simpledemo.openecomp.org +resources.port=8443 +resources.authType=SSL_BASIC +resources.basicAuthUserName=AaiUI +resources.basicAuthPassword=OBF:1gfr1p571unz1p4j1gg7 +resources.client-cert=aai-os-cert.p12 +resources.client-cert-password=OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o +resources.trust-store=tomcat_keystore diff --git a/sparky/appconfig/sparky-ssl-config.properties b/sparky/appconfig/application-ssl.properties similarity index 51% rename from sparky/appconfig/sparky-ssl-config.properties rename to sparky/appconfig/application-ssl.properties index b9e5d16..ba0a8db 100644 --- a/sparky/appconfig/sparky-ssl-config.properties +++ b/sparky/appconfig/application-ssl.properties @@ -1,3 +1,3 @@ server.port = 8000 server.ssl.key-store=file:${CONFIG_HOME}/auth/tomcat_keystore -server.ssl.key-alias=tomcat \ No newline at end of file +server.ssl.key-store-password=OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 diff --git a/sparky/appconfig/application-sync.properties b/sparky/appconfig/application-sync.properties new file mode 100644 index 0000000..836ab80 --- /dev/null +++ b/sparky/appconfig/application-sync.properties @@ -0,0 +1,6 @@ +aggregationSyncEnabled=true +historicalEntitySyncEnabled=true +autoSuggestSyncEnabled=true +vnfAliasSyncEnabled=true +geoSyncEnabled=true +viewInspectSyncEnabled=true \ No newline at end of file diff --git a/sparky/appconfig/application.properties b/sparky/appconfig/application.properties new file mode 100644 index 0000000..a0af547 --- /dev/null +++ b/sparky/appconfig/application.properties @@ -0,0 +1,20 @@ +# +# disable the default thyme leaf icon on web-pages +# +spring.mvc.favicon.enabled=false + +# +# to switch to http, remove ssl and put http +# and in the values.yaml change the internalPort to 9517 +# + +spring.profiles.active=camel,http,fe-prod,oxm-schema-prod,oxm-default,resources,sync + +elasticsearch.hostname=aai.elasticsearch.simpledemo.openecomp.org +elasticsearch.port=9200 + +searchservice.hostname=aai.searchservice.simpledemo.openecomp.org +searchservice.port=9509 +searchservice.client-cert=client-cert-onap.p12 +searchservice.client-cert-password=OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10 +searchservice.truststore=tomcat_keystore diff --git a/sparky/appconfig/roles.config b/sparky/appconfig/portal/roles.config similarity index 100% rename from sparky/appconfig/roles.config rename to sparky/appconfig/portal/roles.config diff --git a/sparky/appconfig/schemas/autoSuggestMappings.json b/sparky/appconfig/schemas/autoSuggestMappings.json deleted file mode 100644 index 7857617..0000000 --- a/sparky/appconfig/schemas/autoSuggestMappings.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "properties" : { - "entity_suggest" : { - "type" : "completion", - "payloads" : true, - "analyzer" : "custom_analyzer", - "preserve_position_increments": false - } - } -} \ No newline at end of file diff --git a/sparky/appconfig/schemas/autoSuggestSettings.json b/sparky/appconfig/schemas/autoSuggestSettings.json deleted file mode 100644 index 4525be1..0000000 --- a/sparky/appconfig/schemas/autoSuggestSettings.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "analysis": { - "filter": { - "eng_stop": { - "type": "stop", - "stopwords": "_english_" - } - }, - "analyzer": { - "custom_analyzer": { - "type": "custom", - "tokenizer": "standard", - "filter": [ - "lowercase", - "asciifolding", - "eng_stop" - ] - } - } - } - } \ No newline at end of file diff --git a/sparky/appconfig/schemas/dynamicMappings.json b/sparky/appconfig/schemas/dynamicMappings.json deleted file mode 100644 index 09a00ac..0000000 --- a/sparky/appconfig/schemas/dynamicMappings.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "dynamic_templates": [ - { - "strings": { - "match_mapping_type": "string", - "match": "*", - "mapping": { - "type": "string", - "index": "not_analyzed" - } - } - } - ] -} \ No newline at end of file diff --git a/sparky/appconfig/schemas/entityCountHistoryMappings.json b/sparky/appconfig/schemas/entityCountHistoryMappings.json deleted file mode 100644 index 84e3aec..0000000 --- a/sparky/appconfig/schemas/entityCountHistoryMappings.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "properties": { - "count": { - "type": "long" - }, - "entityType": { - "type": "string", - "index": "not_analyzed" - }, - "timestamp": { - "type": "date", - "format": "MMM d y HH:m:s||dd-MM-yyyy HH:mm:ss||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||MM/dd/yyyy||yyyyMMdd'T'HHmmssZ" - } - } -} - diff --git a/sparky/appconfig/schemas/es_mappings.json b/sparky/appconfig/schemas/es_mappings.json deleted file mode 100644 index 216e3d9..0000000 --- a/sparky/appconfig/schemas/es_mappings.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "properties": { - "entityType": { - "type": "string", - "analyzer": "ngram_analyzer", - "search_analyzer": "ngram_analyzer" - }, - "entityPrimaryKeyValue": { - "type": "string", - "index": "not_analyzed" - }, - "searchTagIDs": { - "type": "string" - }, - "searchTags": { - "type": "string", - "analyzer": "ngram_analyzer" - }, - "crossEntityReferenceValues": { - "type": "string", - "analyzer": "ngram_analyzer" - }, - "link": { - "type": "string", - "index": "not_analyzed" - }, - "lastmodTimestamp": { - "type": "date", - "format": "MMM d y HH:m:s||dd-MM-yyyy HH:mm:ss||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd HH:mm:ss||MM/dd/yyyy||yyyyMMdd'T'HHmmssZ" - } - } -} \ No newline at end of file diff --git a/sparky/appconfig/schemas/es_settings.json b/sparky/appconfig/schemas/es_settings.json deleted file mode 100644 index 21a357c..0000000 --- a/sparky/appconfig/schemas/es_settings.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "analysis": { - "filter": { - "ngram_filter": { - "type": "nGram", - "min_gram": 1, - "max_gram": 50, - "token_chars": [ - "letter", - "digit", - "punctuation", - "symbol" - ] - } - }, - "analyzer": { - "ngram_analyzer": { - "type": "custom", - "tokenizer": "whitespace", - "filter": [ - "lowercase", - "asciifolding", - "ngram_filter" - ] - }, - "whitespace_analyzer": { - "type": "custom", - "tokenizer": "whitespace", - "filter": [ - "lowercase", - "asciifolding" - ] - } - } - } -} \ No newline at end of file diff --git a/sparky/appconfig/sparky-application.properties b/sparky/appconfig/sparky-application.properties deleted file mode 100644 index b246676..0000000 --- a/sparky/appconfig/sparky-application.properties +++ /dev/null @@ -1,11 +0,0 @@ -camel.springboot.name = SparkyCamelContext -#camel.springboot.xmlRoutes = file:${CONFIG_HOME}/camel-routes/*.route -camel.springboot.xmlRests = file:${CONFIG_HOME}/camel-rests/*.xml - -camel.component.servlet.mapping.context-path=/rest/* -server.servlet.context-path=/services/aai/webapp/ - -# -# attempt to externalize ui JS classes + resources -# -spring.resources.static-locations=file:${APP_HOME}/static/ diff --git a/sparky/appconfig/spring-beans/sparky-core-aggregateVnfSearchProvider.xml b/sparky/appconfig/spring-beans/sparky-core-aggregateVnfSearchProvider.xml deleted file mode 100644 index 92c4c7b..0000000 --- a/sparky/appconfig/spring-beans/sparky-core-aggregateVnfSearchProvider.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - addSearchProviders - - - - - - - - diff --git a/sparky/appconfig/spring-beans/sparky-core-apigw.xml b/sparky/appconfig/spring-beans/sparky-core-apigw.xml deleted file mode 100644 index 8b5f277..0000000 --- a/sparky/appconfig/spring-beans/sparky-core-apigw.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sparky/appconfig/spring-beans/sparky-core-gizmo.xml b/sparky/appconfig/spring-beans/sparky-core-gizmo.xml deleted file mode 100644 index b32c625..0000000 --- a/sparky/appconfig/spring-beans/sparky-core-gizmo.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sparky/appconfig/spring-beans/sparky-core-sync.xml b/sparky/appconfig/spring-beans/sparky-core-sync.xml deleted file mode 100644 index 09b13fd..0000000 --- a/sparky/appconfig/spring-beans/sparky-core-sync.xml +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sparky/appconfig/spring-beans/sparky-core-viewInspect.xml b/sparky/appconfig/spring-beans/sparky-core-viewInspect.xml deleted file mode 100644 index c146e6e..0000000 --- a/sparky/appconfig/spring-beans/sparky-core-viewInspect.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - cloud-region - complex - vnf-image - image - flavor - availability-zone - tenant - network-profile - l-interface - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sparky/appconfig/spring-beans/sparky-core-viewInspectSearchProvider.xml b/sparky/appconfig/spring-beans/sparky-core-viewInspectSearchProvider.xml deleted file mode 100644 index 072c935..0000000 --- a/sparky/appconfig/spring-beans/sparky-core-viewInspectSearchProvider.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - Schema - - - - - - - - addSearchProviders - - - - - - - - - diff --git a/sparky/appconfig/spring-beans/sparky-core.xml b/sparky/appconfig/spring-beans/sparky-core.xml deleted file mode 100644 index 7e9bb27..0000000 --- a/sparky/appconfig/spring-beans/sparky-core.xml +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - java.util.HashMap - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - a - an - and - are - as - at - be - but - by - called - for - if - in - into - is - it - no - not - of - on - or - such - that - the - their - then - there - these - they - this - to - was - will - with - - - - - - - - - - - - - - - - - pserver - pnf - - - - - - - - - - - - -