Add missing properties files to SDNC 79/68279/12
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Thu, 20 Sep 2018 20:49:16 +0000 (16:49 -0400)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Fri, 21 Sep 2018 12:30:01 +0000 (08:30 -0400)
Missing netbox and blueprint-rest-adaptor

Change-Id: Ifa4f2095190718ae8dc3412eac99ae242978c97e
Issue-ID: CCSDK-589
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
kubernetes/common/controller-blueprints/resources/config/application.properties
kubernetes/common/controller-blueprints/resources/config/logback.xml
kubernetes/common/controller-blueprints/templates/deployment.yaml
kubernetes/common/controller-blueprints/templates/secrets.yaml
kubernetes/common/controller-blueprints/values.yaml
kubernetes/sdnc/resources/config/conf/blueprints-processor-adaptor.properties [new file with mode: 0644]
kubernetes/sdnc/templates/statefulset.yaml

index ec3a1ff..48678fc 100644 (file)
@@ -18,7 +18,9 @@ appName=ControllerBluePrints
 ms_name=org.onap.ccsdk.apps.controllerblueprints
 appVersion=1.0.0
 
-#logging.pattern.console=%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr($ threadId: {PID:- }){magenta} %clr(---){faint} %clr([ hostname: %X{hostname} serviceName: %X{serviceName} version: %X{version} transactionId: %X{transactionId} requestTimeStamp: %X{requestTimestamp}  responseTimeStamp: %X{responseTimestamp} duration: %X{duration}]){yellow} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wex
+# Basic Authentication
+basic-auth.user-name=ccsdkapps
+basic-auth.hashed-pwd=$2a$10$MJxhNiOAffxbyrV9.rrOUewP9Q/ASg5Nit2cmP.yBaXGsVXo8BW3y
 
 logging.level.org.springframework.web=INFO
 logging.level.org.hibernate.SQL=warn
@@ -28,9 +30,9 @@ logging.level.org.hibernate.type.descriptor.sql=debug
 spring.jackson.default-property-inclusion=non_null
 
 #Swagger Configuration
-swagger.contact.name=Brinda Santh Muthuramalingam
-swagger.contact.url=www.onap.com
-swagger.contact.email=brindasanth@onap.com
+swagger.contact.name=CCSDK team
+swagger.contact.url=www.onap.org
+swagger.contact.email=onap-discuss@lists.onap.org
 
 spring.jpa.properties.hibernate.show_sql=true
 spring.jpa.properties.hibernate.use_sql_comments=true
index 9129fcf..b73db71 100644 (file)
@@ -33,6 +33,7 @@
 
     <logger name="org.springframework" level="info"/>
     <logger name="org.springframework.web" level="info"/>
+    <logger name="org.springframework.security.web.authentication" level="warn"/>
     <logger name="org.hibernate" level="error"/>
     <logger name="org.onap.ccsdk.apps" level="info"/>
 
@@ -40,4 +41,4 @@
         <appender-ref ref="STDOUT"/>
     </root>
 
-</configuration>
\ No newline at end of file
+</configuration>
index fc7329c..18fb165 100644 (file)
@@ -81,6 +81,16 @@ spec:
                 secretKeyRef:
                   name: {{ template "common.fullname" . }}
                   key: db-root-password
+            - name: MS_USER
+              valueFrom:
+                secretKeyRef:
+                  name: {{ template "common.fullname" . }}
+                  key: restUser
+            - name: MS_PASSWORD
+              valueFrom:
+                secretKeyRef:
+                  name: {{ template "common.fullname" . }}
+                  key: restPassword
             - name: INIT_DATA_LOAD
               value: {{ .Values.config.initDataLoad | quote }}
             - name: STICKYSELECTORKEY
index 4b11188..b4ab161 100644 (file)
@@ -25,3 +25,5 @@ metadata:
 type: Opaque
 data:
   db-root-password: {{ index .Values "mariadb-galera" "config" "mariadbRootPassword" | b64enc | quote }}
+  restUser: {{ .Values.config.restUser | b64enc | quote }}
+  restPassword: {{ .Values.config.restPassword | b64enc | quote }}
index a08ab12..f8b8aba 100644 (file)
@@ -53,6 +53,8 @@ config:
   initDataLoad: true
   stickySelectorKey:
   envContext: DEV
+  restUser: ccsdkapps
+  restPassword: ccsdkapps
 
 mariadb-galera:
   config:
diff --git a/kubernetes/sdnc/resources/config/conf/blueprints-processor-adaptor.properties b/kubernetes/sdnc/resources/config/conf/blueprints-processor-adaptor.properties
new file mode 100644 (file)
index 0000000..eb17d09
--- /dev/null
@@ -0,0 +1,35 @@
+###
+# Copyright � 2017-2018 AT&T Intellectual Property.
+# Modifications Copyright � 2018 IBM.
+#
+# 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.
+###
+#
+# Configuration file for SDNC Controller Module
+#
+
+org.onap.ccsdk.features.rest.adaptors.envtype=solo
+
+# Config Generator Microservices
+org.onap.ccsdk.features.rest.adaptors.modelservice.type=generic
+org.onap.ccsdk.features.rest.adaptors.modelservice.enable=true
+org.onap.ccsdk.features.rest.adaptors.modelservice.url=http://controller-blueprints:8080/api/v1/
+org.onap.ccsdk.features.rest.adaptors.modelservice.user=ccsdkapps
+org.onap.ccsdk.features.rest.adaptors.modelservice.passwd=ccsdkapps
+
+# Generic RESTCONF Adaptor
+org.onap.ccsdk.features.rest.adaptors.restconf.type=generic
+org.onap.ccsdk.features.rest.adaptors.restconf.enable=true
+org.onap.ccsdk.features.rest.adaptors.restconf.user=admin
+org.onap.ccsdk.features.rest.adaptors.restconf.passwd={{ .Values.config.odlPassword}}
+org.onap.ccsdk.features.rest.adaptors.restconf.url=http://sdnc:8282/restconf/
index 8c52e5c..784bc69 100644 (file)
@@ -123,6 +123,12 @@ spec:
           - mountPath: /opt/onap/sdnc/svclogic/config/svclogic.properties
             name: properties
             subPath: svclogic.properties
+          - mountPath: {{ .Values.config.configDir }}/netbox.properties
+            name: properties
+            subPath: netbox.properties
+          - mountPath: {{ .Values.config.configDir }}/blueprints-processor-adaptor.properties
+            name: properties
+            subPath: blueprints-processor-adaptor.properties
           - mountPath: {{ .Values.persistence.mdsalPath }}
             name: {{ include "common.fullname" . }}-mdsal
           - mountPath: /var/log/onap