From 37cea57f20a8c558823e52af447721dbee95ad23 Mon Sep 17 00:00:00 2001 From: Alexis de Talhouët Date: Wed, 15 Aug 2018 16:24:45 -0400 Subject: Added netbox.properties config file for SDNC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../resources/config/initializers/users.yml | 2 +- .../sdnc/resources/config/conf/netbox.properties | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 kubernetes/sdnc/resources/config/conf/netbox.properties 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 -- cgit 1.2.3-korg