tripleo-validations/roles/validation_init
Gael Chamoulaud (Strider) 135ffd3492
Introduce new Ansible validation_init role.
This patch migrates the new role addition playbook into a proper Ansible
role with proper molecule tests. This new role will be responsible for
creating a new validation.

It is good to mention that the process won't change and it will be
fully transparent for the user.

To create a new role in tripleo-validations:

$ cd tripleo-validations/
$ export ANSIBLE_ROLES_PATH="${PWD}/roles"
$ ansible-playbook -i localhost, role-addition.yml -e validation_init_role_name=${NEWROLENAME}

Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
Change-Id: I219f4054e6b854306719b9c91a0738c526f07666
(cherry picked from commit 83ba5e32fd)
(cherry picked from commit 19bb19ea3c)
(cherry picked from commit fc7ab69ef0)
(cherry picked from commit d32efebfae)
2021-07-02 09:54:12 +02:00
..
defaults Introduce new Ansible validation_init role. 2021-07-02 09:54:12 +02:00
files/_skeleton_role_ Introduce new Ansible validation_init role. 2021-07-02 09:54:12 +02:00
molecule/default Introduce new Ansible validation_init role. 2021-07-02 09:54:12 +02:00
tasks Introduce new Ansible validation_init role. 2021-07-02 09:54:12 +02:00
templates Introduce new Ansible validation_init role. 2021-07-02 09:54:12 +02:00
README.md Introduce new Ansible validation_init role. 2021-07-02 09:54:12 +02:00

README.md

Validation_init

The purpose of this validation_init role is to create new validation from a skeleton.

Requirements

None.

Role Variables

  • validation_init_debug: <'false'> -- Debugging mode.
  • validation_init_role_name: <'Undefined'> -- New role name, undefined by default!
  • validation_init_prefix: <'tripleo'> -- New role prefix
  • validation_init_skeleton_role_dir: <'/tmp'> -- Absolute path of the directory where the skeleton will be deployed
  • validation_init_roles_dir: <'roles'> -- Absolute/Relative path to the roles directory where the new roles will be created
  • validation_init_zuuld_molecule: <'zuul.d/molecule.yaml'> -- Relative path to the CI molecule yaml file
  • validation_init_playbooks_dir: <'playbooks'> -- Relative path to the playbooks directory where the new playbook will be created
  • validation_init_roles_doc_dir: <'doc/source/roles'> -- Relative path to documentation roles directory
  • validation_init_enabling_ci: <'true'> -- If 'true', documentation and CI configuration will be done, otherwise not

Dependencies

None.

Example Playbook

- name: Create my new role
  hosts: localhost
  connection: local
  gather_facts: false
  roles:
  - { role: validation_init, validation_init_role_name: "mynewrolename"}

License

Apache

Author Information

Red hat TripleO DFG:DF Squad:VF