aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/_commons8
-rwxr-xr-xlib/_composed_functions8
-rwxr-xr-xlib/_installers10
-rwxr-xr-xlib/_onap_functions8
-rwxr-xr-xlib/aai9
-rwxr-xr-xlib/appc8
-rwxr-xr-xlib/ccsdk8
-rwxr-xr-xlib/ci-management29
-rwxr-xr-xlib/config/env-vars10
-rwxr-xr-xlib/dcae8
-rwxr-xr-xlib/dmaap8
-rw-r--r--lib/files/aio_inventory.cfg9
-rw-r--r--lib/files/all-in-one9
-rwxr-xr-xlib/functions8
-rwxr-xr-xlib/integration8
-rwxr-xr-xlib/mr8
-rwxr-xr-xlib/msb8
-rwxr-xr-xlib/multicloud8
-rwxr-xr-xlib/oom8
-rwxr-xr-xlib/openstack8
-rwxr-xr-xlib/policy8
-rwxr-xr-xlib/portal8
-rwxr-xr-xlib/robot8
-rwxr-xr-xlib/sdc8
-rwxr-xr-xlib/sdnc8
-rwxr-xr-xlib/vfc8
-rwxr-xr-xlib/vid8
-rwxr-xr-xlib/vnfsdk8
-rwxr-xr-xlib/vvp8
29 files changed, 258 insertions, 2 deletions
diff --git a/lib/_commons b/lib/_commons
index 90f73d2..d433b46 100755
--- a/lib/_commons
+++ b/lib/_commons
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
# update_repos() - Function that updates linux repositories
function update_repos {
diff --git a/lib/_composed_functions b/lib/_composed_functions
index 9f2d0a1..71268c8 100755
--- a/lib/_composed_functions
+++ b/lib/_composed_functions
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
# build_docker_image() - Build Docker container image from source code
function build_docker_image {
diff --git a/lib/_installers b/lib/_installers
index 3273f8c..939349a 100755
--- a/lib/_installers
+++ b/lib/_installers
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/_commons
source /var/onap/_onap_functions
@@ -311,7 +319,7 @@ function install_haproxy {
# _install_rancher() - Function that installs Rancher CLI and container
function _install_rancher {
local rancher_version=v0.6.5
- local rancher_server_version=v1.6.10
+ local rancher_server_version=v1.6.14
local rancher_server=rancher/server:$rancher_server_version
if [ ! -d /opt/rancher/current ]; then
diff --git a/lib/_onap_functions b/lib/_onap_functions
index c5ee7fc..07dc637 100755
--- a/lib/_onap_functions
+++ b/lib/_onap_functions
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
# create_configuration_files() - Store credentials in files
function create_configuration_files {
diff --git a/lib/aai b/lib/aai
index 3ad4adb..e993dac 100755
--- a/lib/aai
+++ b/lib/aai
@@ -1,8 +1,15 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
-
# compile_aai_repos() - Function that compiles AAI source repo.
function compile_aai_repos {
local repos="aai/aai-common aai/resources aai/logging-service aai/traversal"
diff --git a/lib/appc b/lib/appc
index 4f6e037..3eeb705 100755
--- a/lib/appc
+++ b/lib/appc
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/sdnc
source /var/onap/functions
diff --git a/lib/ccsdk b/lib/ccsdk
index 93ee0c8..0dc708b 100755
--- a/lib/ccsdk
+++ b/lib/ccsdk
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/ci-management b/lib/ci-management
new file mode 100755
index 0000000..da6df14
--- /dev/null
+++ b/lib/ci-management
@@ -0,0 +1,29 @@
+#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
+
+source /var/onap/functions
+
+# init_ci-management() - Init ci-management project
+function init_ci-management {
+ local jenkins_username=${1:-$(git config --get gitreview.username)}
+ local jenkins_api_token=$2
+
+ if [[ "$clone_repo" == "True" ]]; then
+ clone_repos "ci-management"
+ pushd ${src_folders[ci-management]}
+ git submodule update --init
+ uninstall_package python-six
+ install_python_package jenkins-job-builder
+ cp jenkins.ini.example jenkins.ini
+ sed -i "s|user=#username#|user=$jenkins_username|g" jenkins.ini
+ sed -i "s|password=#api_token#|password=$jenkins_api_token|g" jenkins.ini
+ popd
+ fi
+}
diff --git a/lib/config/env-vars b/lib/config/env-vars
index a3a4c33..3cb315c 100755
--- a/lib/config/env-vars
+++ b/lib/config/env-vars
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
# URL repository
git_url="https://git.onap.org/"
@@ -11,6 +19,7 @@ src_folders=(
["aai"]="$git_src_folder/aai"
["appc"]="$git_src_folder/appc"
["ccsdk"]="$git_src_folder/ccsdk"
+["ci-management"]="$git_src_folder/ci-management"
["dcae"]="$git_src_folder/dcae"
["dmaap"]="$git_src_folder/dmaap"
["integration"]="$git_src_folder/integration"
@@ -44,6 +53,7 @@ ccsdk/platform/blueprints ccsdk/platform/nbapi \
ccsdk/platform/plugins ccsdk/sli ccsdk/sli/adaptors ccsdk/sli/core \
ccsdk/sli/northbound ccsdk/sli/plugins ccsdk/storage \
ccsdk/storage/esaas ccsdk/storage/pgaas ccsdk/utils"
+["ci-management"]="ci-management"
["dcae"]="dcae dcae/apod dcae/apod/analytics dcae/apod/buildtools \
dcae/apod/cdap dcae/collectors dcae/collectors/ves dcae/controller \
dcae/controller/analytics dcae/dcae-inventory dcae/demo \
diff --git a/lib/dcae b/lib/dcae
index 93b2ac8..9af6036 100755
--- a/lib/dcae
+++ b/lib/dcae
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/dmaap b/lib/dmaap
index cd2e244..3462a8f 100755
--- a/lib/dmaap
+++ b/lib/dmaap
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/files/aio_inventory.cfg b/lib/files/aio_inventory.cfg
index d7ab09b..4aa655d 100644
--- a/lib/files/aio_inventory.cfg
+++ b/lib/files/aio_inventory.cfg
@@ -1,3 +1,12 @@
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
+
[all]
localhost ansible_connection=local
diff --git a/lib/files/all-in-one b/lib/files/all-in-one
index efdb2bf..60a8efa 100644
--- a/lib/files/all-in-one
+++ b/lib/files/all-in-one
@@ -1,3 +1,12 @@
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
+
# These initial groups are the only groups required to be modified. The
# additional groups are for more control of the environment.
[control]
diff --git a/lib/functions b/lib/functions
index 198074b..e3354fc 100755
--- a/lib/functions
+++ b/lib/functions
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/_commons
source /var/onap/config/env-vars
diff --git a/lib/integration b/lib/integration
index 3f106ab..42e49c3 100755
--- a/lib/integration
+++ b/lib/integration
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/mr b/lib/mr
index bba7486..0e280ec 100755
--- a/lib/mr
+++ b/lib/mr
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/msb b/lib/msb
index bcf27fe..e406e2d 100755
--- a/lib/msb
+++ b/lib/msb
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/multicloud b/lib/multicloud
index ff6f970..337acdd 100755
--- a/lib/multicloud
+++ b/lib/multicloud
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/oom b/lib/oom
index fb2d594..8e5dab3 100755
--- a/lib/oom
+++ b/lib/oom
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/openstack b/lib/openstack
index 53e474d..c698138 100755
--- a/lib/openstack
+++ b/lib/openstack
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/policy b/lib/policy
index 57add71..9d665a8 100755
--- a/lib/policy
+++ b/lib/policy
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/portal b/lib/portal
index 0d59dab..c921b49 100755
--- a/lib/portal
+++ b/lib/portal
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/robot b/lib/robot
index c00bb60..c7088e7 100755
--- a/lib/robot
+++ b/lib/robot
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/sdc b/lib/sdc
index 71a5fea..2352e1e 100755
--- a/lib/sdc
+++ b/lib/sdc
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/sdnc b/lib/sdnc
index 3d1d592..e3397bc 100755
--- a/lib/sdnc
+++ b/lib/sdnc
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
source /var/onap/ccsdk
diff --git a/lib/vfc b/lib/vfc
index 64f7df0..0fd818e 100755
--- a/lib/vfc
+++ b/lib/vfc
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/vid b/lib/vid
index 331dc2b..cbfa02d 100755
--- a/lib/vid
+++ b/lib/vid
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/vnfsdk b/lib/vnfsdk
index ea7fa33..f1a9856 100755
--- a/lib/vnfsdk
+++ b/lib/vnfsdk
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions
diff --git a/lib/vvp b/lib/vvp
index f24431e..efa5cda 100755
--- a/lib/vvp
+++ b/lib/vvp
@@ -1,4 +1,12 @@
#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#############################################################################
source /var/onap/functions