1bbf282356
Presently, the operator(s) can only execute the official and supported validations coming from tripleo-validations and validations-common. Community validations enable a sysadmin to create and execute validations unique to their environment. This patch introduces the new Command Line Interface sub command to create a new community validation skeleton. First, this latter will check if there is an existing role or a playbook either in the community validations catalog or the official validations catalog. And it will create an Ansible role (with ansible-galaxy[1]) and a playbook in the ~/community-validations directory. By default, the community validations feature is enabled but may be disabled by setting [DEFAULT].enable_community_validations to ``False`` in the validation configuration file. Example: [stack@localhost]$ validation init my-new-validation Validation config file found: /etc/validation.cfg New role created successfully in /home/stack/community-validations/roles/my_new_validation New playbook created successfully in /home/stack/community-validations/playbooks/my-new-validation.yaml For a full demo of this new CLI sub command, please take a look at this asciinema[2]. [1] - https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html [2] - https://asciinema.org/a/445105 Change-Id: I8fb16e3456696187d4a9d3820740a7639a96e315 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
56 lines
1.7 KiB
INI
56 lines
1.7 KiB
INI
[metadata]
|
|
name = validations-libs
|
|
summary = A common library for the validations framework
|
|
long_description = file:README.rst
|
|
long_description_content_type = text/x-rst
|
|
author = OpenStack
|
|
author_email = openstack-discuss@lists.openstack.org
|
|
home_page = https://docs.openstack.org/validations-libs/latest/
|
|
classifier =
|
|
Environment :: OpenStack
|
|
Intended Audience :: Information Technology
|
|
Intended Audience :: System Administrators
|
|
License :: OSI Approved :: Apache Software License
|
|
Operating System :: POSIX :: Linux
|
|
Programming Language :: Python
|
|
Programming Language :: Python :: 3
|
|
Programming Language :: Python :: 3.6
|
|
Programming Language :: Python :: 3.7
|
|
Programming Language :: Python :: 3.8
|
|
Programming Language :: Python :: 3.9
|
|
|
|
[files]
|
|
packages = validations_libs
|
|
|
|
data_files =
|
|
etc =
|
|
validation.cfg
|
|
|
|
[compile_catalog]
|
|
directory = validations-libs/locale
|
|
domain = validations-lib
|
|
|
|
[update_catalog]
|
|
domain = validations-libs
|
|
output_dir = validations-libs/locale
|
|
input_file = validations-libs/locale/validations-libs.pot
|
|
|
|
[extract_messages]
|
|
keywords = _ gettext ngettext l_ lazy_gettext
|
|
mapping_file = babel.cfg
|
|
output_file = validations-libs/locale/validations-libs.pot
|
|
|
|
[entry_points]
|
|
console_scripts:
|
|
validation = validations_libs.cli.app:main
|
|
|
|
validation.cli:
|
|
list = validations_libs.cli.lister:ValidationList
|
|
show = validations_libs.cli.show:Show
|
|
show_group = validations_libs.cli.show:ShowGroup
|
|
show_parameter = validations_libs.cli.show:ShowParameter
|
|
run = validations_libs.cli.run:Run
|
|
history_list = validations_libs.cli.history:ListHistory
|
|
history_get = validations_libs.cli.history:GetHistory
|
|
init = validations_libs.cli.community:CommunityValidationInit
|