From 794f90b2d3816d5ad1e54741c18aff2e3d1a5707 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Mon, 1 Jun 2020 13:36:48 -0600 Subject: [PATCH] Fix metadata This change update the main galaxy metadata and includes metadata & readme for tripleo_validation_run which are required to upload to galaxy. Change-Id: I425276e82453772ce889062d681e6c4947ef0ad8 --- galaxy.yml | 8 ++-- roles/tripleo_validator_run/README.md | 51 +++++++++++++++++++++++ roles/tripleo_validator_run/meta/main.yml | 42 +++++++++++++++++++ 3 files changed, 97 insertions(+), 4 deletions(-) create mode 100644 roles/tripleo_validator_run/README.md create mode 100644 roles/tripleo_validator_run/meta/main.yml diff --git a/galaxy.yml b/galaxy.yml index 9d84c23..8ac0d32 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -10,7 +10,7 @@ namespace: tripleo name: operator # The version of the collection. Must be compatible with semantic versioning -version: 0.2.0 +version: 0.2.1 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md @@ -24,7 +24,7 @@ authors: ### OPTIONAL but strongly recommended # A short summary description of the collection -description: your collection description +description: Collection of roles used to automate TripleO deployments # Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only # accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file' @@ -37,7 +37,7 @@ license_file: '' # A list of tags you want to associate with the collection for indexing/searching. A tag name has the same character # requirements as 'namespace' and 'name' -tags: [] +tags: ['tripleo', 'openstack'] # Collections that this collection requires to be installed for it to be usable. The key of the dict is the # collection label 'namespace.name'. The value is a version range @@ -49,7 +49,7 @@ dependencies: {} repository: https://opendev.org/openstack/tripleo-operator-ansible # The URL to any online docs -documentation: https://docs.openstack.org/tripleo-docs/latest/ +documentation: https://docs.openstack.org/tripleo-operator-ansible/latest/ # The URL to the homepage of the collection/project homepage: https://openstack.org diff --git a/roles/tripleo_validator_run/README.md b/roles/tripleo_validator_run/README.md new file mode 100644 index 0000000..a3c69cd --- /dev/null +++ b/roles/tripleo_validator_run/README.md @@ -0,0 +1,51 @@ +tripleo_validator_run +===================== + +A role to run tripleo validations + +Requirements +------------ + +None. + +Role Variables +-------------- + +* `tripleo_validator_run_debug`: (Boolean) Flag to print out the delete command. Default: False +* `tripleo_validator_run_plan`: (String) Plan to run validations against +* `tripleo_validator_run_workers`: (Integer) Number of workers +* `tripleo_validator_run_extra_vars_file`: (String) Path to an ansible vars file to use when running the valdations +* `tripleo_validator_run_validation`: (String) Specific validation to run +* `tripleo_validator_run_group`: (String) Group of validations to run + +Output Variables +---------------- + +* `tripleo_validator_run_result`: Ansible shell execution results + +Dependencies +------------ + +None. + +Example Playbook +---------------- + +Example validator run playbook + +```yaml +- hosts: undercloud + gather_facts: true + tasks: + - name: Run validations + import_role: + name: tripleo_validator_run + var: + tripleo_validator_run_debug: true + tripleo_validator_run_name: overcloud +``` + +License +------- + +Apache-2.0 diff --git a/roles/tripleo_validator_run/meta/main.yml b/roles/tripleo_validator_run/meta/main.yml new file mode 100644 index 0000000..cf430f5 --- /dev/null +++ b/roles/tripleo_validator_run/meta/main.yml @@ -0,0 +1,42 @@ +--- +# Copyright 2020 Red Hat, Inc. +# All Rights Reserved. +# +# 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. + + +galaxy_info: + author: OpenStack + description: TripleO Operator Role -- tripleo_validator_run + company: Red Hat + license: Apache-2.0 + min_ansible_version: 2.8 + # + # Provide a list of supported platforms, and for each platform a list of versions. + # If you don't wish to enumerate all versions for a particular platform, use 'all'. + # To view available platforms and versions (or releases), visit: + # https://galaxy.ansible.com/api/v1/platforms/ + # + platforms: + - name: CentOS + versions: + - 7 + - 8 + + galaxy_tags: + - tripleo + + +# List your role dependencies here, one per line. Be sure to remove the '[]' above, +# if you add dependencies to this list. +dependencies: []