summaryrefslogtreecommitdiffstats
path: root/mcp/scripts
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-10-14 19:42:41 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-10-15 01:56:43 +0000
commit94825e25dcc5bf4a8490690fc1cf423df0e9d7fe (patch)
treee0d02c21d32dcd56c0aa2f8bca8ddb14dcb32621 /mcp/scripts
parentef570e8954b44fd608cf1ff5e50b5cbc3d0d178f (diff)
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 <Alexandru.Avadanii@enea.com> (cherry picked from commit 644e5fdfa2f49b988a5150e2a4eefc12daecd845)
Diffstat (limited to 'mcp/scripts')
-rwxr-xr-xmcp/scripts/create-config-drive.sh7
-rw-r--r--mcp/scripts/lib.sh7
-rw-r--r--mcp/scripts/net_internal.xml8
-rw-r--r--mcp/scripts/net_mcpcontrol.xml.template8
-rw-r--r--mcp/scripts/net_mgmt.xml8
-rw-r--r--mcp/scripts/net_public.xml8
-rw-r--r--mcp/scripts/user-data.template7
7 files changed, 53 insertions, 0 deletions
diff --git a/mcp/scripts/create-config-drive.sh b/mcp/scripts/create-config-drive.sh
index 0943914ab..51e38c60d 100755
--- a/mcp/scripts/create-config-drive.sh
+++ b/mcp/scripts/create-config-drive.sh
@@ -1,4 +1,11 @@
#!/bin/bash
+##############################################################################
+# Copyright (c) 2017 Mirantis Inc. 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
+##############################################################################
# This will generate a openstack-style config drive image suitable for
# use with cloud-init. You may optionally pass in an ssh public key
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index 3a6deec21..7449a2172 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -1,4 +1,11 @@
#!/bin/bash
+##############################################################################
+# 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
+##############################################################################
#
# Library of shell functions
#
diff --git a/mcp/scripts/net_internal.xml b/mcp/scripts/net_internal.xml
index a9abece70..8cf875e7c 100644
--- a/mcp/scripts/net_internal.xml
+++ b/mcp/scripts/net_internal.xml
@@ -1,3 +1,11 @@
+<!--
+ 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
+-->
<network>
<name>internal</name>
<bridge name="internal"/>
diff --git a/mcp/scripts/net_mcpcontrol.xml.template b/mcp/scripts/net_mcpcontrol.xml.template
index ab58851e8..e0034fd16 100644
--- a/mcp/scripts/net_mcpcontrol.xml.template
+++ b/mcp/scripts/net_mcpcontrol.xml.template
@@ -1,3 +1,11 @@
+<!--
+ 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
+-->
<network>
<name>mcpcontrol</name>
<bridge name="mcpcontrol"/>
diff --git a/mcp/scripts/net_mgmt.xml b/mcp/scripts/net_mgmt.xml
index 0ba613152..4fbec712a 100644
--- a/mcp/scripts/net_mgmt.xml
+++ b/mcp/scripts/net_mgmt.xml
@@ -1,3 +1,11 @@
+<!--
+ 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
+-->
<network>
<name>mgmt</name>
<bridge name="mgmt"/>
diff --git a/mcp/scripts/net_public.xml b/mcp/scripts/net_public.xml
index 61650d5a6..d6df4aa30 100644
--- a/mcp/scripts/net_public.xml
+++ b/mcp/scripts/net_public.xml
@@ -1,3 +1,11 @@
+<!--
+ 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
+-->
<network>
<name>public</name>
<bridge name="public"/>
diff --git a/mcp/scripts/user-data.template b/mcp/scripts/user-data.template
index 7dd718e63..6752039bf 100644
--- a/mcp/scripts/user-data.template
+++ b/mcp/scripts/user-data.template
@@ -1,4 +1,11 @@
#!/bin/bash
+##############################################################################
+# 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_REPO=repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.11
if [ "$(uname -i)" = "aarch64" ]; then
SALT_REPO=linux.enea.com/saltstack/apt/ubuntu/16.04/arm64/2016.11