From 4d135cad932bde94001bd863f0fdda7a99e8176c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Quatremain?= Date: Fri, 2 Aug 2024 15:11:14 +0200 Subject: [PATCH] Clean up and COP GitHub actions --- .ansible-lint | 3 +- .github/actions/fix-crun/action.yml | 32 --------------- .github/files/galaxy.yml.j2 | 26 ++++++++++++ .github/workflows/ansible-integration.yml | 2 +- .github/workflows/ansible-sanity.yml | 41 ------------------- .github/workflows/doc-lint.yml | 25 +++++++++++ .github/workflows/pre-commit-sanity.yml | 22 ++++++++++ .github/workflows/pre-commit.yml | 26 ------------ .github/workflows/update-pre-commit.yml | 16 ++++++++ .yamllint | 6 +++ README.md | 3 +- galaxy.yml | 3 +- meta/runtime.yml | 2 +- plugins/doc_fragments/auth.py | 2 +- plugins/doc_fragments/autoprune.py | 2 +- plugins/filter/quay.py | 2 +- plugins/filter/quay_docker_config.yml | 2 +- plugins/module_utils/api_module.py | 2 +- plugins/module_utils/quay_image.py | 2 +- plugins/modules/quay_api_token.py | 2 +- plugins/modules/quay_application.py | 2 +- plugins/modules/quay_default_perm.py | 2 +- plugins/modules/quay_docker_token.py | 2 +- plugins/modules/quay_first_user.py | 2 +- plugins/modules/quay_layer_info.py | 2 +- plugins/modules/quay_manifest_label.py | 2 +- plugins/modules/quay_manifest_label_info.py | 2 +- plugins/modules/quay_message.py | 2 +- plugins/modules/quay_notification.py | 2 +- plugins/modules/quay_organization.py | 2 +- plugins/modules/quay_proxy_cache.py | 2 +- plugins/modules/quay_quota.py | 2 +- plugins/modules/quay_repository.py | 2 +- plugins/modules/quay_repository_mirror.py | 2 +- plugins/modules/quay_robot.py | 2 +- plugins/modules/quay_tag.py | 2 +- plugins/modules/quay_tag_info.py | 2 +- plugins/modules/quay_team.py | 2 +- plugins/modules/quay_team_ldap.py | 2 +- plugins/modules/quay_team_oidc.py | 2 +- plugins/modules/quay_user.py | 2 +- plugins/modules/quay_vulnerability_info.py | 2 +- roles/quay_org/README.md | 2 +- roles/quay_org/meta/argument_specs.yml | 2 +- roles/quay_org/meta/main.yml | 2 +- .../targets/setup_token/tasks/main.yml | 2 +- 46 files changed, 135 insertions(+), 138 deletions(-) delete mode 100644 .github/actions/fix-crun/action.yml create mode 100644 .github/files/galaxy.yml.j2 delete mode 100644 .github/workflows/ansible-sanity.yml create mode 100644 .github/workflows/doc-lint.yml create mode 100644 .github/workflows/pre-commit-sanity.yml delete mode 100644 .github/workflows/pre-commit.yml create mode 100644 .github/workflows/update-pre-commit.yml diff --git a/.ansible-lint b/.ansible-lint index 38876b1..48dd59e 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,4 +1,5 @@ --- exclude_paths: - tests/sample_manual_test.yml - - changelogs +supported_ansible_also: + - "2.14" diff --git a/.github/actions/fix-crun/action.yml b/.github/actions/fix-crun/action.yml deleted file mode 100644 index b48f9d7..0000000 --- a/.github/actions/fix-crun/action.yml +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (c) 2024 Markus Falb -# GNU General Public License v3.0+ -# see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt ---- - -# https://github.com/actions/runner-images/issues/9425 -name: Fix crun -description: Fix crun because of incompatible kernel - -inputs: - checksums: - description: The path to the CHECKSUM file - type: string - required: true - -runs: - using: composite - steps: - - name: patch crun - shell: bash - env: - # yamllint disable rule:line-length - URI: https://github.com/containers/crun/releases/download/1.14.4/crun-1.14.4-linux-amd64 - # yamllint enable rule:line-length - CHECKSUMS: ${{ inputs.checksums }} - run: | - cd $(dirname "$CHECKSUMS") - test -f "$(basename $CHECKSUMS)" - curl -Lo crun "$URI" - sha256sum -c "$(basename $CHECKSUMS)" - sudo install crun /usr/bin/crun -... diff --git a/.github/files/galaxy.yml.j2 b/.github/files/galaxy.yml.j2 new file mode 100644 index 0000000..a533570 --- /dev/null +++ b/.github/files/galaxy.yml.j2 @@ -0,0 +1,26 @@ +--- +namespace: {{ collection_namespace }} +name: {{ collection_name }} +version: {{ collection_version }} +readme: README.md +authors: + - Hervé Quatremain + - Tom Page +description: Ansible modules to manage Quay Container Registry installations +license: + - GPL-3.0-or-later +tags: + - application + - quay + - registry +repository: {{ collection_repo }} + +# The URL to any online docs +documentation: {{ collection_repo }} + +# The URL to the home page of the collection/project +homepage: {{ collection_repo }} + +# The URL to the collection issue tracker +issues: {{ collection_repo }}/issues +... diff --git a/.github/workflows/ansible-integration.yml b/.github/workflows/ansible-integration.yml index b90dd87..bfbc8be 100644 --- a/.github/workflows/ansible-integration.yml +++ b/.github/workflows/ansible-integration.yml @@ -50,7 +50,7 @@ jobs: --group-by version working-directory: ./ansible_collections/infra/quay_configuration - # See the repots at https://codecov.io/gh/infra/quay_configuration + # See the reports at https://codecov.io/gh/infra/quay_configuration - uses: codecov/codecov-action@v4 with: fail_ci_if_error: false diff --git a/.github/workflows/ansible-sanity.yml b/.github/workflows/ansible-sanity.yml deleted file mode 100644 index 68b6020..0000000 --- a/.github/workflows/ansible-sanity.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -name: Sanity Test -on: - push: - branches: - - main - pull_request: - -jobs: - integration: - runs-on: ubuntu-latest - steps: - # Work around https://github.com/actions/runner-images/issues/9425 - - uses: actions/checkout@v4 - - name: Install crun - uses: ./.github/actions/fix-crun - with: - checksums: CHECKSUMS - - - uses: actions/setup-python@v5 - with: - python-version: '3.12' - - - name: Install required packages - run: pip install -Iv ansible antsibull-docs - - - uses: actions/checkout@v4 - with: - path: ansible_collections/infra/quay_configuration - - - name: Run sanity tests - run: > - ANSIBLE_TEST_PREFER_PODMAN=1 ansible-test sanity - --docker default -v --color - working-directory: ./ansible_collections/infra/quay_configuration - - - name: Lint documentation - run: > - antsibull-docs lint-collection-docs --plugin-docs - ./ansible_collections/infra/quay_configuration -... diff --git a/.github/workflows/doc-lint.yml b/.github/workflows/doc-lint.yml new file mode 100644 index 0000000..0420d4e --- /dev/null +++ b/.github/workflows/doc-lint.yml @@ -0,0 +1,25 @@ +--- +name: Linting Collection Documentation + +on: + push: + branches: + - main + pull_request: + +jobs: + documentation-linting: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Install required packages + run: pip install -Iv ansible-core antsibull-docs + + - uses: actions/checkout@v4 + + - name: Lint documentation + run: antsibull-docs lint-collection-docs --plugin-docs . +... diff --git a/.github/workflows/pre-commit-sanity.yml b/.github/workflows/pre-commit-sanity.yml new file mode 100644 index 0000000..79d0c4e --- /dev/null +++ b/.github/workflows/pre-commit-sanity.yml @@ -0,0 +1,22 @@ +--- +# This workflow runs pre-commit, which executes Ansible and YAML linting. +# See .pre-commit-config.yaml for more details. +# The workflow also runs Ansible sanity tests +name: Pre-commit and Sanity Tests + +on: + push: + branches: + - main + pull_request: + +jobs: + pre-commit_and_sanity: + uses: + redhat-cop/ansible_collections_tooling/.github/workflows/pre_commit_and_sanity.yml@main + with: + collection_namespace: infra + collection_name: quay_configuration + collection_version: 2.0.0 + collection_repo: https://github.com/redhat-cop/quay_configuration +... diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml deleted file mode 100644 index 1975770..0000000 --- a/.github/workflows/pre-commit.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -# This workflow action runs pre-commit, which executes Ansible and yaml linting -# See .pre-commit-config.yaml for more details -name: Code Linting - -on: - push: - branches: - - main - pull_request: - -jobs: - pre-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 - with: - python-version: '3.11' - - - name: Install required packages - run: pip install -Iv ansible-core ansible-lint flake8 yamllint black - - - uses: pre-commit/action@v3.0.1 -... diff --git a/.github/workflows/update-pre-commit.yml b/.github/workflows/update-pre-commit.yml new file mode 100644 index 0000000..cce665e --- /dev/null +++ b/.github/workflows/update-pre-commit.yml @@ -0,0 +1,16 @@ +--- +name: Update pre-commit Configuration + +on: + schedule: + - cron: "4 2 * * 0" + +jobs: + pre-commit: + uses: + redhat-cop/ansible_collections_tooling/.github/workflows/update_precommit.yml@main + with: + github_actor: ${{ github.actor }} + secrets: + token: ${{ secrets.GITHUB_TOKEN }} +... diff --git a/.yamllint b/.yamllint index 9538d15..7c81bd4 100644 --- a/.yamllint +++ b/.yamllint @@ -21,4 +21,10 @@ rules: - 'on' - 'true' - 'false' + comments: + min-spaces-from-content: 1 + comments-indentation: disable + octal-values: + forbid-implicit-octal: true + forbid-explicit-octal: true ... diff --git a/README.md b/README.md index 95fbe90..97e1c2c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Quay Container Registry Collection for Ansible -[![Code Linting](https://github.com/redhat-cop/quay_configuration/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/redhat-cop/quay_configuration/actions/workflows/pre-commit.yml) -[![Sanity Test](https://github.com/redhat-cop/quay_configuration/actions/workflows/ansible-sanity.yml/badge.svg)](https://github.com/redhat-cop/quay_configuration/actions/workflows/ansible-sanity.yml) +[![Sanity Test](https://github.com/redhat-cop/quay_configuration/actions/workflows/pre-commit-sanity.yml/badge.svg)](https://github.com/redhat-cop/quay_configuration/actions/workflows/pre-commit-sanity.yml) [![Integration Test](https://github.com/redhat-cop/quay_configuration/actions/workflows/ansible-integration.yml/badge.svg)](https://github.com/redhat-cop/quay_configuration/actions/workflows/ansible-integration.yml) diff --git a/galaxy.yml b/galaxy.yml index 07d5bfd..8aecb8c 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -4,7 +4,7 @@ name: quay_configuration version: 2.1.0 readme: README.md authors: - - Hervé Quatremain + - Hervé Quatremain - Tom Page description: Ansible modules to manage Quay Container Registry installations license: @@ -23,3 +23,4 @@ homepage: https://github.com/redhat-cop/quay_configuration # The URL to the collection issue tracker issues: https://github.com/redhat-cop/quay_configuration/issues +... diff --git a/meta/runtime.yml b/meta/runtime.yml index c867b19..f3c1b32 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -1,5 +1,5 @@ --- -requires_ansible: ">=2.15.0" +requires_ansible: ">=2.14.0" action_groups: quay: - quay_application diff --git a/plugins/doc_fragments/auth.py b/plugins/doc_fragments/auth.py index 06adc4f..15aac40 100644 --- a/plugins/doc_fragments/auth.py +++ b/plugins/doc_fragments/auth.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright: (c) 2021, 2022, Herve Quatremain +# Copyright: (c) 2021, 2022, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function diff --git a/plugins/doc_fragments/autoprune.py b/plugins/doc_fragments/autoprune.py index bcf34c8..de42323 100644 --- a/plugins/doc_fragments/autoprune.py +++ b/plugins/doc_fragments/autoprune.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright: (c) 2024, Herve Quatremain +# Copyright: (c) 2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function diff --git a/plugins/filter/quay.py b/plugins/filter/quay.py index 34ba449..9dfc948 100644 --- a/plugins/filter/quay.py +++ b/plugins/filter/quay.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright: (c) 2024, Herve Quatremain +# Copyright: (c) 2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations diff --git a/plugins/filter/quay_docker_config.yml b/plugins/filter/quay_docker_config.yml index 86df063..47f9fb1 100644 --- a/plugins/filter/quay_docker_config.yml +++ b/plugins/filter/quay_docker_config.yml @@ -1,5 +1,5 @@ --- -# Copyright: (c) 2024, Herve Quatremain +# Copyright: (c) 2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or # https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION: diff --git a/plugins/module_utils/api_module.py b/plugins/module_utils/api_module.py index c8a115b..999d2e8 100644 --- a/plugins/module_utils/api_module.py +++ b/plugins/module_utils/api_module.py @@ -1,4 +1,4 @@ -# Copyright: (c) 2021-2024, Herve Quatremain +# Copyright: (c) 2021-2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/module_utils/quay_image.py b/plugins/module_utils/quay_image.py index 11566ed..7ca32a2 100644 --- a/plugins/module_utils/quay_image.py +++ b/plugins/module_utils/quay_image.py @@ -1,4 +1,4 @@ -# Copyright: (c) 2022, Herve Quatremain +# Copyright: (c) 2022, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/plugins/modules/quay_api_token.py b/plugins/modules/quay_api_token.py index 04f0490..8a6176e 100644 --- a/plugins/modules/quay_api_token.py +++ b/plugins/modules/quay_api_token.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2022-2024, Herve Quatremain +# Copyright: (c) 2022-2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_application.py b/plugins/modules/quay_application.py index cd1ce6c..ad3ae7d 100644 --- a/plugins/modules/quay_application.py +++ b/plugins/modules/quay_application.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021-2024, Herve Quatremain +# Copyright: (c) 2021-2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_default_perm.py b/plugins/modules/quay_default_perm.py index e9084c2..354c2dc 100644 --- a/plugins/modules/quay_default_perm.py +++ b/plugins/modules/quay_default_perm.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, 2022, Herve Quatremain +# Copyright: (c) 2021, 2022, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_docker_token.py b/plugins/modules/quay_docker_token.py index 17b0f3b..7c5fc66 100644 --- a/plugins/modules/quay_docker_token.py +++ b/plugins/modules/quay_docker_token.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2022-2024, Herve Quatremain +# Copyright: (c) 2022-2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_first_user.py b/plugins/modules/quay_first_user.py index 0465791..7d96e14 100644 --- a/plugins/modules/quay_first_user.py +++ b/plugins/modules/quay_first_user.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, 2022, Herve Quatremain +# Copyright: (c) 2021, 2022, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_layer_info.py b/plugins/modules/quay_layer_info.py index 1355cbe..7b43775 100644 --- a/plugins/modules/quay_layer_info.py +++ b/plugins/modules/quay_layer_info.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, 2022, Herve Quatremain +# Copyright: (c) 2021, 2022, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_manifest_label.py b/plugins/modules/quay_manifest_label.py index aec3cae..4ee2ab5 100644 --- a/plugins/modules/quay_manifest_label.py +++ b/plugins/modules/quay_manifest_label.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2022-2024, Herve Quatremain +# Copyright: (c) 2022-2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_manifest_label_info.py b/plugins/modules/quay_manifest_label_info.py index 251ff27..f9c5577 100644 --- a/plugins/modules/quay_manifest_label_info.py +++ b/plugins/modules/quay_manifest_label_info.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2022-2024, Herve Quatremain +# Copyright: (c) 2022-2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_message.py b/plugins/modules/quay_message.py index 716a183..5edb9c2 100644 --- a/plugins/modules/quay_message.py +++ b/plugins/modules/quay_message.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, 2022, Herve Quatremain +# Copyright: (c) 2021, 2022, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_notification.py b/plugins/modules/quay_notification.py index d295e04..41fd864 100644 --- a/plugins/modules/quay_notification.py +++ b/plugins/modules/quay_notification.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, 2022, 2024 Herve Quatremain +# Copyright: (c) 2021, 2022, 2024 Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_organization.py b/plugins/modules/quay_organization.py index 8483a28..3950922 100644 --- a/plugins/modules/quay_organization.py +++ b/plugins/modules/quay_organization.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021-2024, Herve Quatremain +# Copyright: (c) 2021-2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_proxy_cache.py b/plugins/modules/quay_proxy_cache.py index 6709096..668f64a 100644 --- a/plugins/modules/quay_proxy_cache.py +++ b/plugins/modules/quay_proxy_cache.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2024 Herve Quatremain +# Copyright: (c) 2024 Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_quota.py b/plugins/modules/quay_quota.py index 3007c61..a1448eb 100644 --- a/plugins/modules/quay_quota.py +++ b/plugins/modules/quay_quota.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2022 Herve Quatremain +# Copyright: (c) 2022 Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_repository.py b/plugins/modules/quay_repository.py index 38fa842..3c2c898 100644 --- a/plugins/modules/quay_repository.py +++ b/plugins/modules/quay_repository.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021-2024, Herve Quatremain +# Copyright: (c) 2021-2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_repository_mirror.py b/plugins/modules/quay_repository_mirror.py index 9a874ee..be9f93f 100644 --- a/plugins/modules/quay_repository_mirror.py +++ b/plugins/modules/quay_repository_mirror.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, 2022, Herve Quatremain +# Copyright: (c) 2021, 2022, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_robot.py b/plugins/modules/quay_robot.py index 77807b6..1410f26 100644 --- a/plugins/modules/quay_robot.py +++ b/plugins/modules/quay_robot.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021-2024, Herve Quatremain +# Copyright: (c) 2021-2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_tag.py b/plugins/modules/quay_tag.py index fd0d232..bfd953a 100644 --- a/plugins/modules/quay_tag.py +++ b/plugins/modules/quay_tag.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, 2022, Herve Quatremain +# Copyright: (c) 2021, 2022, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_tag_info.py b/plugins/modules/quay_tag_info.py index 08e883c..d7bd6b5 100644 --- a/plugins/modules/quay_tag_info.py +++ b/plugins/modules/quay_tag_info.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, 2022, Herve Quatremain +# Copyright: (c) 2021, 2022, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_team.py b/plugins/modules/quay_team.py index 6d6d68b..33c0987 100644 --- a/plugins/modules/quay_team.py +++ b/plugins/modules/quay_team.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021-2024 Herve Quatremain +# Copyright: (c) 2021-2024 Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_team_ldap.py b/plugins/modules/quay_team_ldap.py index b30dd9a..de7b8f8 100644 --- a/plugins/modules/quay_team_ldap.py +++ b/plugins/modules/quay_team_ldap.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2022, Herve Quatremain +# Copyright: (c) 2022, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_team_oidc.py b/plugins/modules/quay_team_oidc.py index 90220a9..a37bf04 100644 --- a/plugins/modules/quay_team_oidc.py +++ b/plugins/modules/quay_team_oidc.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2024, Herve Quatremain +# Copyright: (c) 2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_user.py b/plugins/modules/quay_user.py index 2c15b4f..5b4a758 100644 --- a/plugins/modules/quay_user.py +++ b/plugins/modules/quay_user.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021-2024, Herve Quatremain +# Copyright: (c) 2021-2024, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/plugins/modules/quay_vulnerability_info.py b/plugins/modules/quay_vulnerability_info.py index ff03103..3657456 100644 --- a/plugins/modules/quay_vulnerability_info.py +++ b/plugins/modules/quay_vulnerability_info.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright: (c) 2021, 2022, Herve Quatremain +# Copyright: (c) 2021, 2022, Herve Quatremain # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # For accessing the API documentation from a running system, use the swagger-ui diff --git a/roles/quay_org/README.md b/roles/quay_org/README.md index dc3c811..7514ebb 100644 --- a/roles/quay_org/README.md +++ b/roles/quay_org/README.md @@ -155,4 +155,4 @@ GPL 3.0 or later. Author Information ------------------ -This role was created in 2022 by Hervé Quatremain +This role was created in 2022 by Hervé Quatremain diff --git a/roles/quay_org/meta/argument_specs.yml b/roles/quay_org/meta/argument_specs.yml index 666ce50..20ad850 100644 --- a/roles/quay_org/meta/argument_specs.yml +++ b/roles/quay_org/meta/argument_specs.yml @@ -2,7 +2,7 @@ argument_specs: main: author: - - Hervé Quatremain + - Hervé Quatremain short_description: > Create and configure a Quay Container Registry organization description: diff --git a/roles/quay_org/meta/main.yml b/roles/quay_org/meta/main.yml index 30cf70a..7a77036 100644 --- a/roles/quay_org/meta/main.yml +++ b/roles/quay_org/meta/main.yml @@ -1,6 +1,6 @@ --- galaxy_info: - author: Hervé Quatremain + author: Hervé Quatremain description: Create and configure a Quay Container Registry organization license: GPL-3.0-or-later min_ansible_version: "2.1" diff --git a/tests/integration/targets/setup_token/tasks/main.yml b/tests/integration/targets/setup_token/tasks/main.yml index 729bcec..a7fe120 100644 --- a/tests/integration/targets/setup_token/tasks/main.yml +++ b/tests/integration/targets/setup_token/tasks/main.yml @@ -65,7 +65,7 @@ ansible.builtin.copy: dest: /tmp/quay_collection_TOKEN.yml content: "---\ndefault_token: {{ result['access_token'] }}\n" - mode: 0600 + mode: "0600" - name: Store the OAuth access token in the quay_token fact ansible.builtin.set_fact: