diff options
Diffstat (limited to 'playbooks')
19 files changed, 88 insertions, 120 deletions
diff --git a/playbooks/bmra-config.yaml b/playbooks/bmra-config.yaml index 5b020f1..052415d 100644 --- a/playbooks/bmra-config.yaml +++ b/playbooks/bmra-config.yaml @@ -1,12 +1,9 @@ --- -# SPDX-license-identifier: Apache-2.0 -############################################################################## -# 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 Anuket contributors +# SPDX-FileCopyrightText: 2021 Ericsson AB and others +# +# SPDX-License-Identifier: Apache-2.0 - hosts: localhost connection: local diff --git a/playbooks/bootstrap.yaml b/playbooks/bootstrap.yaml index 4ef2baa..903e671 100644 --- a/playbooks/bootstrap.yaml +++ b/playbooks/bootstrap.yaml @@ -1,12 +1,8 @@ --- -# SPDX-license-identifier: Apache-2.0 -############################################################################## -# 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 - hosts: localhost connection: local diff --git a/playbooks/jump-vm.yaml b/playbooks/jump-vm.yaml index bdad81c..16e4e68 100644 --- a/playbooks/jump-vm.yaml +++ b/playbooks/jump-vm.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 - hosts: localhost connection: local diff --git a/playbooks/pre-install.yaml b/playbooks/pre-install.yaml index 31d2a1c..0a4267f 100644 --- a/playbooks/pre-install.yaml +++ b/playbooks/pre-install.yaml @@ -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: Install requirements on nodes hosts: all,!localhost 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 |