aboutsummaryrefslogtreecommitdiffstats
path: root/ms/neng/opt/etc
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2018-08-20 16:38:00 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-20 16:38:00 +0000
commit7e2a1e010afaa8c9b7419ac01fcd1f8e3a9af0e4 (patch)
treeee74be92b9a406571105d4456ca5bf05c8f10e86 /ms/neng/opt/etc
parent3b9a260d31728b2e974b040d4c3046773b5e1381 (diff)
parent9cbcdacf01abd92ca0952410760d3d8545b23ad8 (diff)
Merge "Naming micro-service code."
Diffstat (limited to 'ms/neng/opt/etc')
-rw-r--r--ms/neng/opt/etc/config/application-dbless.properties42
-rw-r--r--ms/neng/opt/etc/config/application-standalone.properties44
-rw-r--r--ms/neng/opt/etc/config/application.properties47
-rw-r--r--ms/neng/opt/etc/config/logback.xml40
-rw-r--r--ms/neng/opt/etc/config/system.properties35
5 files changed, 208 insertions, 0 deletions
diff --git a/ms/neng/opt/etc/config/application-dbless.properties b/ms/neng/opt/etc/config/application-dbless.properties
new file mode 100644
index 00000000..3ac94d18
--- /dev/null
+++ b/ms/neng/opt/etc/config/application-dbless.properties
@@ -0,0 +1,42 @@
+#============LICENSE_START=======================================================
+# ONAP : CCSDK.apps
+# ================================================================================
+# Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#============LICENSE_END=========================================================
+
+#=========================================================================
+#
+# Configuration used for running the application from your IDE, without a DB, for testing.
+#
+# It uses an in-memory DB to support database related functions.
+#
+#=========================================================================
+datasource.db.driver-class-name=org.h2.Driver
+datasource.db.url=jdbc:h2:mem:tests;DB_CLOSE_DELAY=-1;
+datasource.db.username=TBD
+datasource.db.password=TBD
+jpa.hibernate.ddl-auto=none
+jpa.show-sql=true
+
+policymgr.clientAuth=Basic TBD
+policymgr.basicAuth=Basic TBD
+policymgr.url=https://TBD/pdp/api/getConfig
+policymgr.environment=TEST
+policymgr.ecompRequestId=xx
+
+aai.certPassword=TBD
+aai.cert=opt/aai/keystore/TBD
+aai.uriBase=https://TBD/aai/v13/
+aai.fromAppId=namegen-mS
diff --git a/ms/neng/opt/etc/config/application-standalone.properties b/ms/neng/opt/etc/config/application-standalone.properties
new file mode 100644
index 00000000..07ad0ee2
--- /dev/null
+++ b/ms/neng/opt/etc/config/application-standalone.properties
@@ -0,0 +1,44 @@
+#============LICENSE_START=======================================================
+# ONAP : CCSDK.apps
+# ================================================================================
+# Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#============LICENSE_END=========================================================
+
+#=========================================================================
+#
+# Configuration used for running the application stand-alone, in a docker
+# container, without a DB.
+#
+# It uses an in-memory DB for supporting database related functions.
+#
+#=========================================================================
+datasource.db.driver-class-name=org.h2.Driver
+datasource.db.url=jdbc:h2:mem:tests;DB_CLOSE_DELAY=-1;
+datasource.db.username=${neng_db_user}
+datasource.db.password=${neng_db_pass}
+jpa.hibernate.ddl-auto=none
+jpa.show-sql=true
+
+policymgr.clientAuth=Basic TBD
+policymgr.basicAuth=Basic TBD
+policymgr.url=${policymgr_url}
+policymgr.environment=TEST
+policymgr.ecompRequestId=xx
+
+aai.certPassword=${aai_cert_pass}
+aai.cert=opt/aai/keystore/TBD
+aai.uriBase=${aai_uribase}
+aai.fromAppId=namegen-mS
+
diff --git a/ms/neng/opt/etc/config/application.properties b/ms/neng/opt/etc/config/application.properties
new file mode 100644
index 00000000..71d7a5f5
--- /dev/null
+++ b/ms/neng/opt/etc/config/application.properties
@@ -0,0 +1,47 @@
+#============LICENSE_START=======================================================
+# ONAP : CCSDK.apps
+# ================================================================================
+# Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#============LICENSE_END=========================================================
+
+#=========================================================================
+#
+# Main configuration for the application, used always.
+#
+# This can be overridden with entries in the 'application-xyz.properties' file
+# when using a specific spring profile 'xyz'.
+#
+#=========================================================================
+
+datasource.db.driver-class-name=com.mysql.jdbc.Driver
+
+endpoints.beans.id=springbeans
+endpoints.beans.sensitive=false
+
+logging.level.liquibase=DEBUG
+
+liquibase.changeLog=classpath:/db/changelog/db.changelog-master.xml
+
+management.security.enabled=false
+
+server.contextPath=/web
+
+#The max number of active threads in this pool
+server.tomcat.max-threads=200
+
+#The minimum number of threads always kept alive
+server.tomcat.min-spare-threads=25
+
+spring.jersey.type=filter
diff --git a/ms/neng/opt/etc/config/logback.xml b/ms/neng/opt/etc/config/logback.xml
new file mode 100644
index 00000000..6e0ea863
--- /dev/null
+++ b/ms/neng/opt/etc/config/logback.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+ <!--
+ * ============LICENSE_START=======================================================
+ * ONAP : CCSDK.apps
+ * ================================================================================
+ * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ -->
+
+<configuration scan="true" scanPeriod="3 seconds" debug="false">
+
+ <statusListener class="ch.qos.logback.core.status.NopStatusListener" />
+
+ <property name="namespace" value="${kubernetes.namespace}"></property>
+
+ <property name="defaultPattern"
+ value="%d{yyyy-MM-dd HH:mm:ss.SSS} $ thread:%X{threadId} %-5level NS:o.o.c.a.m.neng %logger{20} [ host:%X{hostname} serv:%X{serviceName} ver:%X{version} tx:%X{transactionId} conv:%X{conversationId} reqTime:%X{requestTimestamp} respTime:%X{responseTimestamp} dur:%X{duration}] %m%n" />
+
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>${defaultPattern}</pattern>
+ </encoder>
+ </appender>
+ <root level="INFO">
+ <appender-ref ref="STDOUT" />
+ </root>
+</configuration>
diff --git a/ms/neng/opt/etc/config/system.properties b/ms/neng/opt/etc/config/system.properties
new file mode 100644
index 00000000..d8fa4d45
--- /dev/null
+++ b/ms/neng/opt/etc/config/system.properties
@@ -0,0 +1,35 @@
+#============LICENSE_START=======================================================
+# ONAP : CCSDK.apps
+# ================================================================================
+# Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#============LICENSE_END=========================================================
+
+#=========================================================================
+#
+# system configuration for the application.
+#
+#=========================================================================
+
+logging.config=opt/etc/config/logback.xml
+
+# Spring configuration files
+spring.config.location=opt/etc/config/
+spring.config.name=application
+
+appName=networkelementnamegen
+
+#Modify the below system property
+info.build.version=2018.10.01
+javax.net.ssl.trustStore=opt/etc/truststore/truststore.jks