diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/_commons | 8 | ||||
-rwxr-xr-x | lib/_composed_functions | 8 | ||||
-rwxr-xr-x | lib/_installers | 10 | ||||
-rwxr-xr-x | lib/_onap_functions | 8 | ||||
-rwxr-xr-x | lib/aai | 9 | ||||
-rwxr-xr-x | lib/appc | 8 | ||||
-rwxr-xr-x | lib/ccsdk | 8 | ||||
-rwxr-xr-x | lib/ci-management | 29 | ||||
-rwxr-xr-x | lib/config/env-vars | 10 | ||||
-rwxr-xr-x | lib/dcae | 8 | ||||
-rwxr-xr-x | lib/dmaap | 8 | ||||
-rw-r--r-- | lib/files/aio_inventory.cfg | 9 | ||||
-rw-r--r-- | lib/files/all-in-one | 9 | ||||
-rwxr-xr-x | lib/functions | 8 | ||||
-rwxr-xr-x | lib/integration | 8 | ||||
-rwxr-xr-x | lib/mr | 8 | ||||
-rwxr-xr-x | lib/msb | 8 | ||||
-rwxr-xr-x | lib/multicloud | 8 | ||||
-rwxr-xr-x | lib/oom | 8 | ||||
-rwxr-xr-x | lib/openstack | 8 | ||||
-rwxr-xr-x | lib/policy | 8 | ||||
-rwxr-xr-x | lib/portal | 8 | ||||
-rwxr-xr-x | lib/robot | 8 | ||||
-rwxr-xr-x | lib/sdc | 8 | ||||
-rwxr-xr-x | lib/sdnc | 8 | ||||
-rwxr-xr-x | lib/vfc | 8 | ||||
-rwxr-xr-x | lib/vid | 8 | ||||
-rwxr-xr-x | lib/vnfsdk | 8 | ||||
-rwxr-xr-x | lib/vvp | 8 |
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 { @@ -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" @@ -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 @@ -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 \ @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 |