Added netbox.properties config file for SDNC 93/60793/5
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Wed, 15 Aug 2018 20:24:45 +0000 (16:24 -0400)
committerAlexis de Talhouët <alexis.de_talhouet@bell.ca>
Tue, 28 Aug 2018 20:24:19 +0000 (20:24 +0000)
https://gerrit.onap.org/r/#/c/60791/ is addin Netbox client
support for SDNC. In order to connect to this system, configuration
is needed at the deployment phase to provide host and api key, used
to interact through REST to the system.

Change-Id: I2177ead86879d4c65eca86e7a1dce29f2de94956
Issue-ID: CCSDK-462
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/initializers/users.yml
kubernetes/sdnc/resources/config/conf/netbox.properties [new file with mode: 0755]

index 984c328..77d330b 100755 (executable)
@@ -3,7 +3,7 @@ onap:
     last_name: McQueen
     email: steve.mcqueen@onap.org
     password: onap123$
-    api_token: onceuponatimeiplayedwithnetbox20180814
+    api_token: onceuponatimeiplayedwithnetbox20180814 # This API KEY is used by SDNC, if you edit it, make sure to change it in the netbox.properties file
     is_staff: true # whether user is admin or not, default = false
     is_active: true # whether user is active, default = true
     is_superuser: true # Whether user has all edit rights or not, default = false
\ No newline at end of file
diff --git a/kubernetes/sdnc/resources/config/conf/netbox.properties b/kubernetes/sdnc/resources/config/conf/netbox.properties
new file mode 100755 (executable)
index 0000000..9cd3880
--- /dev/null
@@ -0,0 +1,19 @@
+#
+# Copyright (C) 2018 AT&T, Bell Canada.
+#
+# 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 Netbox client
+org.onap.ccsdk.sli.adaptors.netbox.url=http://netbox-app.{{.Release.Namespace}}:8001
+org.onap.ccsdk.sli.adaptors.netbox.apikey=onceuponatimeiplayedwithnetbox20180814
\ No newline at end of file