redhat-cop / infra-ansible

Tooling / Ansible to support the many aspects of infrastructure installation, setup and configuration.
Apache License 2.0
214 stars 122 forks source link

Adding OSP role to manage Swift objects and containers #661

Closed oybed closed 2 years ago

oybed commented 2 years ago

What does this PR do?

This role - and playbook - allows for management of Swift Object + Container. This allows for a list of files to be defined to be uploaded to a Swift Container. The container will be created and file added. If the "state" is set to "absent" it will remove the file. (the container is not removed per this version, but will be functionality available in future releases).

How should this be tested?

Define an inventory per the README with content to be uploaded to swift container. Make sure to run the playbook as a user that has swiftoperator set as a role for the target project in OSP Observe that the Swift Container and corresponding object has been created.

Is there a relevant Issue open for this?

N/A

Other Relevant info, PRs, etc.

N/A

People to notify

cc: @redhat-cop/infra-ansible