summaryrefslogtreecommitdiffstats
path: root/playbooks/roles
diff options
context:
space:
mode:
authorGeorg Kunz <georg.kunz@ericsson.com>2021-08-09 16:43:55 +0200
committerjenkins-ci <jenkins-opnfv-ci@opnfv.org>2021-08-12 08:55:40 +0000
commit70e5aad57f6e4d740fadb410a4ecec0be979194b (patch)
treecaa3d5723d8e56aac91257455ce94ed438d76468 /playbooks/roles
parentef7624527898ec135eaf31603a915b441ac9a775 (diff)
Align license headers with REUSE guidelines
This patch applies a consistent use of license and copyright headers to all source files according to the guidelines of REUSE. Signed-off-by: Georg Kunz <georg.kunz@ericsson.com> Change-Id: I8973efe304e8fb03ad0861d4b8356221d898d548 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72804 Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com> Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Diffstat (limited to 'playbooks/roles')
-rw-r--r--playbooks/roles/bmra-config/tasks/main.yaml4
-rw-r--r--playbooks/roles/bmra-config/templates/all.j221
-rw-r--r--playbooks/roles/bmra-config/templates/inventory.j26
-rw-r--r--playbooks/roles/bmra-config/templates/kube-node.j221
-rw-r--r--playbooks/roles/bootstrap/tasks/main.yaml11
-rw-r--r--playbooks/roles/jump-vm/tasks/main.yaml11
-rw-r--r--playbooks/roles/jump-vm/templates/meta-data.j26
-rw-r--r--playbooks/roles/jump-vm/templates/network-config.j26
-rw-r--r--playbooks/roles/jump-vm/templates/user-data.j26
-rw-r--r--playbooks/roles/pre-install/molecule/default/converge.yml12
-rw-r--r--playbooks/roles/pre-install/molecule/default/molecule.yml13
-rw-r--r--playbooks/roles/pre-install/molecule/default/tests/test_default.py15
-rw-r--r--playbooks/roles/pre-install/tasks/main.yml12
-rw-r--r--playbooks/roles/pre-install/vars/Debian.yml4
-rw-r--r--playbooks/roles/pre-install/vars/RedHat.yml12
15 files changed, 71 insertions, 89 deletions
diff --git a/playbooks/roles/bmra-config/tasks/main.yaml b/playbooks/roles/bmra-config/tasks/main.yaml
index e5a692f..396ff79 100644
--- a/playbooks/roles/bmra-config/tasks/main.yaml
+++ b/playbooks/roles/bmra-config/tasks/main.yaml
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2021 Anuket contributors
+#
+# SPDX-License-Identifier: Apache-2.0
+
---
- name: Write BMRA inventory config
template:
diff --git a/playbooks/roles/bmra-config/templates/all.j2 b/playbooks/roles/bmra-config/templates/all.j2
index 1dbabe2..1eca556 100644
--- a/playbooks/roles/bmra-config/templates/all.j2
+++ b/playbooks/roles/bmra-config/templates/all.j2
@@ -1,18 +1,9 @@
-##
-## Copyright (c) 2020-2021 Intel Corporation.
-##
-## 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.
-##
+{#
+SPDX-FileCopyrightText: 2021 Intel Corporation
+
+SPDX-License-Identifier: Apache-2.0
+#}
+
---
## BMRA primary playbook variables ##
diff --git a/playbooks/roles/bmra-config/templates/inventory.j2 b/playbooks/roles/bmra-config/templates/inventory.j2
index 7f6cde0..9b91c5f 100644
--- a/playbooks/roles/bmra-config/templates/inventory.j2
+++ b/playbooks/roles/bmra-config/templates/inventory.j2
@@ -1,3 +1,9 @@
+{#
+SPDX-FileCopyrightText: 2021 Anuket contributors
+
+SPDX-License-Identifier: Apache-2.0
+#}
+
[all]
{% for node in nodes %}
{{ idf.kubespray.hostnames[node.name] }} ansible_host={{ node.interfaces[idf.net_config[engine.pxe_network].interface].address }} ip={{ node.interfaces[idf.net_config[engine.pxe_network].interface].address }}
diff --git a/playbooks/roles/bmra-config/templates/kube-node.j2 b/playbooks/roles/bmra-config/templates/kube-node.j2
index 09a6958..2f66c5a 100644
--- a/playbooks/roles/bmra-config/templates/kube-node.j2
+++ b/playbooks/roles/bmra-config/templates/kube-node.j2
@@ -1,18 +1,9 @@
-##
-## Copyright (c) 2020-2021 Intel Corporation.
-##
-## 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.
-##
+{#
+SPDX-FileCopyrightText: 2021 Intel Corporation
+
+SPDX-License-Identifier: Apache-2.0
+#}
+
---
# Kubernetes node configuration
diff --git a/playbooks/roles/bootstrap/tasks/main.yaml b/playbooks/roles/bootstrap/tasks/main.yaml
index ff20552..1ce4d15 100644
--- a/playbooks/roles/bootstrap/tasks/main.yaml
+++ b/playbooks/roles/bootstrap/tasks/main.yaml
@@ -1,11 +1,8 @@
---
-##############################################################################
-# Copyright (c) Ericsson 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
-##############################################################################
+
+# SPDX-FileCopyrightText: 2021 Ericsson AB and others
+#
+# SPDX-License-Identifier: Apache-2.0
# collected PDF and IDF are copied into group_vars
# folder in order to ensure we have single PDF and IDF
diff --git a/playbooks/roles/jump-vm/tasks/main.yaml b/playbooks/roles/jump-vm/tasks/main.yaml
index b6ed840..89e35b2 100644
--- a/playbooks/roles/jump-vm/tasks/main.yaml
+++ b/playbooks/roles/jump-vm/tasks/main.yaml
@@ -1,11 +1,8 @@
---
-##############################################################################
-# Copyright (c) Ericsson 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
-##############################################################################
+
+# SPDX-FileCopyrightText: 2021 Ericsson AB and others
+#
+# SPDX-License-Identifier: Apache-2.0
- name: get all running VMs
virt:
diff --git a/playbooks/roles/jump-vm/templates/meta-data.j2 b/playbooks/roles/jump-vm/templates/meta-data.j2
index b4cc5e8..28eea16 100644
--- a/playbooks/roles/jump-vm/templates/meta-data.j2
+++ b/playbooks/roles/jump-vm/templates/meta-data.j2
@@ -1 +1,7 @@
+{#
+SPDX-FileCopyrightText: 2021 Anuket contributors
+
+SPDX-License-Identifier: Apache-2.0
+#}
+
local-hostname: {{ jumphost.name }}
diff --git a/playbooks/roles/jump-vm/templates/network-config.j2 b/playbooks/roles/jump-vm/templates/network-config.j2
index 8587a10..a8a366c 100644
--- a/playbooks/roles/jump-vm/templates/network-config.j2
+++ b/playbooks/roles/jump-vm/templates/network-config.j2
@@ -1,3 +1,9 @@
+{#
+SPDX-FileCopyrightText: 2021 Anuket contributors
+
+SPDX-License-Identifier: Apache-2.0
+#}
+
{% if deployment_type == 'full' %}
version: 1
config:
diff --git a/playbooks/roles/jump-vm/templates/user-data.j2 b/playbooks/roles/jump-vm/templates/user-data.j2
index 2fad2e3..8b0fba5 100644
--- a/playbooks/roles/jump-vm/templates/user-data.j2
+++ b/playbooks/roles/jump-vm/templates/user-data.j2
@@ -1,3 +1,9 @@
+{#
+SPDX-FileCopyrightText: 2021 Anuket contributors
+
+SPDX-License-Identifier: Apache-2.0
+#}
+
#jinja2:lstrip_blocks: True
#cloud-config
users:
diff --git a/playbooks/roles/pre-install/molecule/default/converge.yml b/playbooks/roles/pre-install/molecule/default/converge.yml
index c7904cf..2efb2b3 100644
--- a/playbooks/roles/pre-install/molecule/default/converge.yml
+++ b/playbooks/roles/pre-install/molecule/default/converge.yml
@@ -1,12 +1,8 @@
---
-# SPDX-license-identifier: Apache-2.0
-##############################################################################
-# Copyright (c) 2020 Samsung Electronics
-# 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
-##############################################################################
+
+# SPDX-FileCopyrightText: 2021 Samsung Electronics
+#
+# SPDX-License-Identifier: Apache-2.0
- name: Converge
hosts: all
diff --git a/playbooks/roles/pre-install/molecule/default/molecule.yml b/playbooks/roles/pre-install/molecule/default/molecule.yml
index a43f45f..d9ee142 100644
--- a/playbooks/roles/pre-install/molecule/default/molecule.yml
+++ b/playbooks/roles/pre-install/molecule/default/molecule.yml
@@ -1,12 +1,9 @@
---
-# SPDX-license-identifier: Apache-2.0
-##############################################################################
-# Copyright (c) 2020 Samsung Electronics
-# 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
-##############################################################################
+
+# SPDX-FileCopyrightText: 2021 Samsung Electronics
+#
+# SPDX-License-Identifier: Apache-2.0
+
dependency:
name: galaxy
driver:
diff --git a/playbooks/roles/pre-install/molecule/default/tests/test_default.py b/playbooks/roles/pre-install/molecule/default/tests/test_default.py
index c992994..df82092 100644
--- a/playbooks/roles/pre-install/molecule/default/tests/test_default.py
+++ b/playbooks/roles/pre-install/molecule/default/tests/test_default.py
@@ -1,17 +1,6 @@
-# Copyright 2020 Samsung Electronics
-#
-# 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.#
+# SPDX-FileCopyrightText: 2020 Samsung Electronics
#
+# SPDX-License-Identifier: Apache-2.0
import os
import pytest
diff --git a/playbooks/roles/pre-install/tasks/main.yml b/playbooks/roles/pre-install/tasks/main.yml
index ba3e1c0..a081068 100644
--- a/playbooks/roles/pre-install/tasks/main.yml
+++ b/playbooks/roles/pre-install/tasks/main.yml
@@ -1,12 +1,8 @@
---
-# SPDX-license-identifier: Apache-2.0
-##############################################################################
-# Copyright (c) 2020 Samsung Electronics
-# 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
-##############################################################################
+
+# SPDX-FileCopyrightText: 2020 Samsung Electronics
+#
+# SPDX-License-Identifier: Apache-2.0
- name: Ensure Python3 is installed for CentOS (Equinix Metal)
raw: yum install -y python3
diff --git a/playbooks/roles/pre-install/vars/Debian.yml b/playbooks/roles/pre-install/vars/Debian.yml
index 0ff9b92..475b136 100644
--- a/playbooks/roles/pre-install/vars/Debian.yml
+++ b/playbooks/roles/pre-install/vars/Debian.yml
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2021 Anuket contributors
+#
+# SPDX-License-Identifier: Apache-2.0
+
---
bmra_pkgs:
- lshw
diff --git a/playbooks/roles/pre-install/vars/RedHat.yml b/playbooks/roles/pre-install/vars/RedHat.yml
index cf20b89..689bdfb 100644
--- a/playbooks/roles/pre-install/vars/RedHat.yml
+++ b/playbooks/roles/pre-install/vars/RedHat.yml
@@ -1,12 +1,8 @@
---
-# SPDX-license-identifier: Apache-2.0
-##############################################################################
-# Copyright (c) 2020 Samsung Electronics
-# 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
-##############################################################################
+
+# SPDX-FileCopyrightText: 2020 Samsung Electronics
+#
+# SPDX-License-Identifier: Apache-2.0
bmra_pkgs:
- lshw