An Ansible role that retrieve DCI component

Clone this repo:

Branches

  1. 4b6365e Enable molecule test again with fix by Guillaume Vincent · 1 year, 5 months ago master
  2. cf61cb6 Make component type case insensitive by Guillaume Vincent · 1 year, 5 months ago
  3. 5c9e5f5 Update tox.ini by Haikel Guemar · 1 year, 10 months ago
  4. 957a178 Molecule: use podman by default and run both EL7/8 by Haikel Guemar · 2 years, 8 months ago
  5. 732ee94 Fix typo sync repo by Farid Da Encarnacao · 2 years, 6 months ago

ansible-role-dci-retrieve-component

An Ansible role that retrieve DCI component.

Pre-requisites

This role relies on python-dciclient and dci-ansible.

If those are not installed, they should be installed before using this role.

Also yum-utils should be installed.

Role Variables

Variable nameRequiredDefaultTypeDescription
dci_retrieve_component_component_idTrueN/AUUIDID of the component to retrieve
dci_retrieve_component_component_nameFalseN/AStringName of the component directory on disk
dci_retrieve_component_local_repoTrueN/APathPath where to store the component locally
dci_retrieve_component_repo_urlFalsehttps://repo.distributed-ci.ioURLURL where the components are stored
dci_retrieve_component_sslclientcertFalse/etc/ssl/repo/dci.crtPathPath to the DCI client certificate
dci_retrieve_component_sslclientkeyFalse/etc/ssl/repo/dci.keyPathPath to the DCI client key
dci_retrieve_component_sslverifyFalseyesBoolWether to verify the certificate of dci_retrieve_component_repo_url
dci_retrieve_component_archFalsex86_64StringProcessor architecture to synchronize via reposync

Example

- hosts: localhost
  vars:
    dci_retrieve_component_component_id: XXX
    dci_retrieve_component_component_name: XXX # Optional, if not present take the topic name
    dci_retrieve_component_local_repo: /var/www/html
  roles:
    - dci-retrieve-component

To download an alternative architecture than the current one.

- hosts: localhost
  tasks:
    - name: Retrieve component
      vars:
        dci_retrieve_component_component_id: XXX
        dci_retrieve_component_local_repo: /var/www/html
        dci_retrieve_component_arch: ppc64le
      include_role:
        name: dci-retrieve-component

License

Apache 2.0

Author Information

Distributed-CI Team distributed-ci@redhat.com