Swift provides object storage for OpenStack. Here, we create containers and upload objects inside the containers. Remember that a container is a virtual entity for organizing the data better.
Managing objects in Swift
How to do it...
- Let's begin with creating a container, as follows:
- name: create an object container
os_object:
state: present
container: backup
- Now let's push a sample object here, as follows:
- name: upload backup.tar to backup container
os_object:
filename: /opt/backup.tar
container: backup
name: backup.tar
state: present