Files
tripleo-operator-ansible/roles/tripleo_container_image_delete
Harald Jensås 570c886faa Bump molecule[test] to 3.5.x
CI is failing with conflictiong dependencies:

The conflict is caused by:
    molecule[test] 3.2.4 depends on pluggy<1.0 and >=0.7.1
    molecule[test] 3.2.3 depends on pluggy<1.0 and >=0.7.1
    molecule[test] 3.2.2 depends on pluggy<1.0 and >=0.7.1
    molecule[test] 3.2.1 depends on pluggy<1.0 and >=0.7.1
    molecule[test] 3.2.0 depends on pluggy<1.0 and >=0.7.1
    molecule[test] 3.2.0a2 depends on pluggy<1.0 and >=0.7.1
    molecule[test] 3.2.0a1 depends on pluggy<1.0 and >=0.7.1
    The user requested (constraint) pluggy===1.0.0

Let's try to use molecule[test] 3.5.x

Also set 'role_name' and 'namespace' in meta/main.yaml for
all roles. Namespace cannot container uppercase characters,
so computing fully qualified role name using author 'OpenStack'
does not work.

Also - fix tests in tripleo_overcloud_node_discover

Closes-Bug: #1943269
Change-Id: I1ab9764dd4d24c17c5ee2cb1f26fbc3c4b27d3d7
2021-09-23 15:33:06 +02:00
..
2021-09-23 15:33:06 +02:00
2020-04-15 16:25:27 -06:00
2020-01-27 19:10:31 +00:00
2020-01-28 13:27:26 +00:00

tripleo_container_image_delete

A role to perform the container image delete against a registry.

Requirements

None.

Role Variables

  • tripleo_container_image_delete_become: (Boolean) Run as root. This needs to be true if deleting from the local registry. Default: true
  • tripleo_container_image_delete_debug: (Boolean) Flag to print out the delete command. Default: False
  • tripleo_container_image_delete_image: (String) REQUIRED. Full URL of image to be deleted in the form :/path/to/image.
  • tripleo_container_image_delete_password: (String) Password for the registry
  • tripleo_container_image_delete_registry_url: (String) Registry to run the delete against. Should be in the form :.
  • tripleo_container_image_delete_username: (String) Username for the registry
  • tripleo_container_image_delete_yes: (Boolean) Do not prompt for configuration. Default: true

Output Variables

  • tripleo_container_image_delete_result: Ansible shell execution results

Dependencies

None.

Example Playbook

Example container delete execution playbook

- hosts: undercloud
  gather_facts: true
  tasks:
    - name: Delete containers
      import_role:
        name: tripleo_container_image_delete
      var:
        tripleo_container_image_delete_image: undercloud.ctlplane.localdomain:8787/library/centos:7

License

Apache-2.0