From 94825e25dcc5bf4a8490690fc1cf423df0e9d7fe Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sat, 14 Oct 2017 19:42:41 +0200 Subject: Add license headers where missing While at it, compact 'set' into bash shebang where possible and add `make patches-copyright` target to simplify adding patch license headers. Change-Id: I0c841de72e5709e5eef915a52c5ec4a7fc0f7c37 Signed-off-by: Alexandru Avadanii (cherry picked from commit 644e5fdfa2f49b988a5150e2a4eefc12daecd845) --- mcp/config/states/dpdk | 10 ++++++++-- mcp/config/states/maas | 10 ++++++++-- mcp/config/states/networks | 10 ++++++++-- mcp/config/states/neutron_compute | 10 ++++++++-- mcp/config/states/opendaylight | 10 ++++++++-- mcp/config/states/openstack | 10 ++++++++-- mcp/config/states/openstack_ha | 10 ++++++++-- mcp/config/states/virtual_control_plane | 10 ++++++++-- 8 files changed, 64 insertions(+), 16 deletions(-) (limited to 'mcp/config/states') diff --git a/mcp/config/states/dpdk b/mcp/config/states/dpdk index 7cee70a88..9ae103d90 100755 --- a/mcp/config/states/dpdk +++ b/mcp/config/states/dpdk @@ -1,5 +1,11 @@ -#!/bin/bash -set -x +#!/bin/bash -x +############################################################################## +# Copyright (c) 2017 Mirantis Inc., Enea AB and others. +# 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 +############################################################################## # shellcheck disable=SC1090 source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh" diff --git a/mcp/config/states/maas b/mcp/config/states/maas index 232f98c88..685dbc9bd 100755 --- a/mcp/config/states/maas +++ b/mcp/config/states/maas @@ -1,5 +1,11 @@ -#!/bin/bash -set -x +#!/bin/bash -x +############################################################################## +# Copyright (c) 2017 Mirantis Inc., Enea AB and others. +# 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 +############################################################################## # shellcheck disable=SC1090 source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh" diff --git a/mcp/config/states/networks b/mcp/config/states/networks index 505153a8a..361e675a8 100755 --- a/mcp/config/states/networks +++ b/mcp/config/states/networks @@ -1,5 +1,11 @@ -#!/bin/bash -set -x +#!/bin/bash -x +############################################################################## +# Copyright (c) 2017 Mirantis Inc., Enea AB and others. +# 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 +############################################################################## # Determine public network based on external IPs from compute node # NOTE: mask currently hardcoded to /24 diff --git a/mcp/config/states/neutron_compute b/mcp/config/states/neutron_compute index 6266b0f18..2a2a2ef78 100755 --- a/mcp/config/states/neutron_compute +++ b/mcp/config/states/neutron_compute @@ -1,5 +1,11 @@ -#!/bin/bash -set -x +#!/bin/bash -x +############################################################################## +# Copyright (c) 2017 Mirantis Inc., Enea AB and others. +# 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 +############################################################################## salt -I 'neutron:compute' state.sls neutron salt -I 'neutron:compute' file.append /etc/sudoers.d/neutron_sudoers \ diff --git a/mcp/config/states/opendaylight b/mcp/config/states/opendaylight index e1ec1982f..7b63483d8 100755 --- a/mcp/config/states/opendaylight +++ b/mcp/config/states/opendaylight @@ -1,5 +1,11 @@ -#!/bin/bash -set -x +#!/bin/bash -x +############################################################################## +# Copyright (c) 2017 Mirantis Inc., Enea AB and others. +# 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 +############################################################################## salt -I 'opendaylight:server' state.sls opendaylight salt -I 'opendaylight:client' state.sls opendaylight.client diff --git a/mcp/config/states/openstack b/mcp/config/states/openstack index beb6abb63..968310334 100755 --- a/mcp/config/states/openstack +++ b/mcp/config/states/openstack @@ -1,5 +1,11 @@ -#!/bin/bash -set -x +#!/bin/bash -x +############################################################################## +# Copyright (c) 2017 Mirantis Inc., Enea AB and others. +# 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 +############################################################################## salt -I 'nfs:server' file.mkdir /srv/nova/instances salt -I 'nfs:server' state.sls nfs diff --git a/mcp/config/states/openstack_ha b/mcp/config/states/openstack_ha index c4c513da1..230288f4f 100755 --- a/mcp/config/states/openstack_ha +++ b/mcp/config/states/openstack_ha @@ -1,5 +1,11 @@ -#!/bin/bash -set -x +#!/bin/bash -x +############################################################################## +# Copyright (c) 2017 Mirantis Inc., Enea AB and others. +# 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 +############################################################################## # shellcheck disable=SC1090 source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh" diff --git a/mcp/config/states/virtual_control_plane b/mcp/config/states/virtual_control_plane index 645009be8..58ae33506 100755 --- a/mcp/config/states/virtual_control_plane +++ b/mcp/config/states/virtual_control_plane @@ -1,5 +1,11 @@ -#!/bin/bash -set -x +#!/bin/bash -x +############################################################################## +# Copyright (c) 2017 Mirantis Inc., Enea AB and others. +# 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 +############################################################################## # shellcheck disable=SC1090 source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh" -- cgit 1.2.3-korg