From 2bc7bb1cd791a7b000748449225d73c795ab3e12 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 19 Oct 2022 14:09:49 +0200 Subject: [PATCH] Add license specifiers. --- .github/workflows/ee.yml | 4 ++++ meta/execution-environment.yml | 4 ++++ playbooks/install.yml | 5 +++++ playbooks/install_localhost.yml | 5 +++++ tests/ee/all.yml | 5 +++++ tests/ee/roles/lookup_sops/files/.sops.yaml | 4 ++++ tests/ee/roles/lookup_sops/files/binary.sops.license | 3 +++ tests/ee/roles/lookup_sops/files/fake-sops-csl.sh | 4 ++++ tests/ee/roles/lookup_sops/files/fake-sops-rep.sh | 4 ++++ tests/ee/roles/lookup_sops/files/fake-sops-val.sh | 4 ++++ tests/ee/roles/lookup_sops/files/fake-sops.sh | 4 ++++ .../roles/lookup_sops/files/hidden-binary-yaml.json.license | 3 +++ tests/ee/roles/lookup_sops/files/hidden-binary-yaml.license | 3 +++ .../roles/lookup_sops/files/hidden-binary-yaml.yaml.license | 3 +++ tests/ee/roles/lookup_sops/files/hidden-binary.json.license | 3 +++ tests/ee/roles/lookup_sops/files/hidden-binary.license | 3 +++ tests/ee/roles/lookup_sops/files/hidden-binary.yaml.license | 3 +++ tests/ee/roles/lookup_sops/files/hidden-json.json.license | 3 +++ tests/ee/roles/lookup_sops/files/hidden-json.license | 3 +++ tests/ee/roles/lookup_sops/files/hidden-json.yaml.license | 3 +++ tests/ee/roles/lookup_sops/files/hidden-yaml.json.license | 3 +++ tests/ee/roles/lookup_sops/files/hidden-yaml.license | 3 +++ tests/ee/roles/lookup_sops/files/hidden-yaml.yaml.license | 3 +++ tests/ee/roles/lookup_sops/files/rstrip.sops.license | 3 +++ tests/ee/roles/lookup_sops/files/simple.sops.yaml.license | 3 +++ tests/ee/roles/lookup_sops/files/wrong.yaml.license | 3 +++ tests/ee/roles/lookup_sops/tasks/main.yml | 4 ++++ 27 files changed, 95 insertions(+) create mode 100644 tests/ee/roles/lookup_sops/files/binary.sops.license create mode 100644 tests/ee/roles/lookup_sops/files/hidden-binary-yaml.json.license create mode 100644 tests/ee/roles/lookup_sops/files/hidden-binary-yaml.license create mode 100644 tests/ee/roles/lookup_sops/files/hidden-binary-yaml.yaml.license create mode 100644 tests/ee/roles/lookup_sops/files/hidden-binary.json.license create mode 100644 tests/ee/roles/lookup_sops/files/hidden-binary.license create mode 100644 tests/ee/roles/lookup_sops/files/hidden-binary.yaml.license create mode 100644 tests/ee/roles/lookup_sops/files/hidden-json.json.license create mode 100644 tests/ee/roles/lookup_sops/files/hidden-json.license create mode 100644 tests/ee/roles/lookup_sops/files/hidden-json.yaml.license create mode 100644 tests/ee/roles/lookup_sops/files/hidden-yaml.json.license create mode 100644 tests/ee/roles/lookup_sops/files/hidden-yaml.license create mode 100644 tests/ee/roles/lookup_sops/files/hidden-yaml.yaml.license create mode 100644 tests/ee/roles/lookup_sops/files/rstrip.sops.license create mode 100644 tests/ee/roles/lookup_sops/files/simple.sops.yaml.license create mode 100644 tests/ee/roles/lookup_sops/files/wrong.yaml.license diff --git a/.github/workflows/ee.yml b/.github/workflows/ee.yml index 91f1a84f..530b5393 100644 --- a/.github/workflows/ee.yml +++ b/.github/workflows/ee.yml @@ -1,4 +1,8 @@ --- +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + name: execution environment on: # Run CI against all pushes (direct commits, also merged PRs), Pull Requests diff --git a/meta/execution-environment.yml b/meta/execution-environment.yml index c6e7fbcf..f1d9b8a6 100644 --- a/meta/execution-environment.yml +++ b/meta/execution-environment.yml @@ -1,3 +1,7 @@ --- +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + version: 1 dependencies: {} diff --git a/playbooks/install.yml b/playbooks/install.yml index 3cd7d942..ccb87348 100644 --- a/playbooks/install.yml +++ b/playbooks/install.yml @@ -1,3 +1,8 @@ +--- +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + - name: Install sops gather_facts: true hosts: all diff --git a/playbooks/install_localhost.yml b/playbooks/install_localhost.yml index 711017f0..64139e28 100644 --- a/playbooks/install_localhost.yml +++ b/playbooks/install_localhost.yml @@ -1,3 +1,8 @@ +--- +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + - name: Install sops on localhost gather_facts: true hosts: localhost diff --git a/tests/ee/all.yml b/tests/ee/all.yml index 7593912a..26f198b4 100644 --- a/tests/ee/all.yml +++ b/tests/ee/all.yml @@ -1,3 +1,8 @@ +--- +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + - hosts: localhost tasks: - name: Find all roles diff --git a/tests/ee/roles/lookup_sops/files/.sops.yaml b/tests/ee/roles/lookup_sops/files/.sops.yaml index 2ae15578..e28ce962 100644 --- a/tests/ee/roles/lookup_sops/files/.sops.yaml +++ b/tests/ee/roles/lookup_sops/files/.sops.yaml @@ -1,3 +1,7 @@ --- +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + creation_rules: - pgp: FBC7B9E2A4F9289AC0C1D4843D16CEE4A27381B4 diff --git a/tests/ee/roles/lookup_sops/files/binary.sops.license b/tests/ee/roles/lookup_sops/files/binary.sops.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/binary.sops.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/fake-sops-csl.sh b/tests/ee/roles/lookup_sops/files/fake-sops-csl.sh index d9fb7c14..7f5d8a41 100755 --- a/tests/ee/roles/lookup_sops/files/fake-sops-csl.sh +++ b/tests/ee/roles/lookup_sops/files/fake-sops-csl.sh @@ -1,4 +1,8 @@ #!/bin/sh +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + if [ "$1" != "--kms" ] || [ "$2" != "a,b,c" ] || [ "$3" != "--decrypt" ] || [ "$(basename "$4")" != "simple.sops.yaml" ] || [ "$5" != "" ]; then echo "Command (fake-sops-csl): $*" > /dev/stderr exit 1 diff --git a/tests/ee/roles/lookup_sops/files/fake-sops-rep.sh b/tests/ee/roles/lookup_sops/files/fake-sops-rep.sh index 8ef4f954..74f22ac2 100755 --- a/tests/ee/roles/lookup_sops/files/fake-sops-rep.sh +++ b/tests/ee/roles/lookup_sops/files/fake-sops-rep.sh @@ -1,4 +1,8 @@ #!/bin/sh +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + if [ "$1" != "--keyservice" ] || [ "$2" != "a" ] || [ "$3" != "--keyservice" ] || [ "$4" != "b" ] || [ "$5" != "--decrypt" ] || [ "$(basename "$6")" != "simple.sops.yaml" ] || [ "$7" != "" ]; then echo "Command (fake-sops-rep): $*" > /dev/stderr exit 1 diff --git a/tests/ee/roles/lookup_sops/files/fake-sops-val.sh b/tests/ee/roles/lookup_sops/files/fake-sops-val.sh index fba3bafd..f29b9f7e 100755 --- a/tests/ee/roles/lookup_sops/files/fake-sops-val.sh +++ b/tests/ee/roles/lookup_sops/files/fake-sops-val.sh @@ -1,4 +1,8 @@ #!/bin/sh +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + if [ "$1" != "--config" ] || [ "$2" != "/path/to/asdf" ] || [ "$3" != "--decrypt" ] || [ "$(basename "$4")" != "simple.sops.yaml" ] || [ "$5" != "" ]; then echo "Command (fake-sops-val): $*" > /dev/stderr exit 1 diff --git a/tests/ee/roles/lookup_sops/files/fake-sops.sh b/tests/ee/roles/lookup_sops/files/fake-sops.sh index 3b2e6165..0e78b2b0 100755 --- a/tests/ee/roles/lookup_sops/files/fake-sops.sh +++ b/tests/ee/roles/lookup_sops/files/fake-sops.sh @@ -1,4 +1,8 @@ #!/bin/sh +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + if [ "$1" != "--enable-local-keyservice" ] || [ "$2" != "--decrypt" ] || [ "$(basename "$3")" != "simple.sops.yaml" ] || [ "$4" != "" ]; then echo "Command (fake-sops): $*" > /dev/stderr exit 1 diff --git a/tests/ee/roles/lookup_sops/files/hidden-binary-yaml.json.license b/tests/ee/roles/lookup_sops/files/hidden-binary-yaml.json.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/hidden-binary-yaml.json.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/hidden-binary-yaml.license b/tests/ee/roles/lookup_sops/files/hidden-binary-yaml.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/hidden-binary-yaml.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/hidden-binary-yaml.yaml.license b/tests/ee/roles/lookup_sops/files/hidden-binary-yaml.yaml.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/hidden-binary-yaml.yaml.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/hidden-binary.json.license b/tests/ee/roles/lookup_sops/files/hidden-binary.json.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/hidden-binary.json.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/hidden-binary.license b/tests/ee/roles/lookup_sops/files/hidden-binary.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/hidden-binary.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/hidden-binary.yaml.license b/tests/ee/roles/lookup_sops/files/hidden-binary.yaml.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/hidden-binary.yaml.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/hidden-json.json.license b/tests/ee/roles/lookup_sops/files/hidden-json.json.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/hidden-json.json.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/hidden-json.license b/tests/ee/roles/lookup_sops/files/hidden-json.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/hidden-json.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/hidden-json.yaml.license b/tests/ee/roles/lookup_sops/files/hidden-json.yaml.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/hidden-json.yaml.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/hidden-yaml.json.license b/tests/ee/roles/lookup_sops/files/hidden-yaml.json.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/hidden-yaml.json.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/hidden-yaml.license b/tests/ee/roles/lookup_sops/files/hidden-yaml.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/hidden-yaml.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/hidden-yaml.yaml.license b/tests/ee/roles/lookup_sops/files/hidden-yaml.yaml.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/hidden-yaml.yaml.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/rstrip.sops.license b/tests/ee/roles/lookup_sops/files/rstrip.sops.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/rstrip.sops.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/simple.sops.yaml.license b/tests/ee/roles/lookup_sops/files/simple.sops.yaml.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/simple.sops.yaml.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/files/wrong.yaml.license b/tests/ee/roles/lookup_sops/files/wrong.yaml.license new file mode 100644 index 00000000..edff8c76 --- /dev/null +++ b/tests/ee/roles/lookup_sops/files/wrong.yaml.license @@ -0,0 +1,3 @@ +GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +SPDX-License-Identifier: GPL-3.0-or-later +SPDX-FileCopyrightText: Ansible Project diff --git a/tests/ee/roles/lookup_sops/tasks/main.yml b/tests/ee/roles/lookup_sops/tasks/main.yml index bb30f398..63744676 100644 --- a/tests/ee/roles/lookup_sops/tasks/main.yml +++ b/tests/ee/roles/lookup_sops/tasks/main.yml @@ -1,4 +1,8 @@ --- +# Copyright (c) Ansible Project +# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) +# SPDX-License-Identifier: GPL-3.0-or-later + - name: Test lookup with missing file set_fact: sops_file_does_not_exists: "{{ lookup('community.sops.sops', 'file-does-not-exists.sops.yml') }}"