summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis de Talhouët <adetalhouet89@gmail.com>2018-08-15 16:24:45 -0400
committerAlexis de Talhouët <alexis.de_talhouet@bell.ca>2018-08-28 20:24:19 +0000
commit37cea57f20a8c558823e52af447721dbee95ad23 (patch)
tree7dcf18f908ae237da62a2f20434b4be55e48471e
parent492c3e8d63c85fd791eca76cd45baa5e904f24f4 (diff)
Added netbox.properties config file for SDNC
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>
-rwxr-xr-xkubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/initializers/users.yml2
-rwxr-xr-xkubernetes/sdnc/resources/config/conf/netbox.properties19
2 files changed, 20 insertions, 1 deletions
diff --git a/kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/initializers/users.yml b/kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/initializers/users.yml
index 984c328c16..77d330beac 100755
--- a/kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/initializers/users.yml
+++ b/kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/initializers/users.yml
@@ -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
index 0000000000..9cd3880614
--- /dev/null
+++ b/kubernetes/sdnc/resources/config/conf/netbox.properties
@@ -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