Skip to content

Latest commit

 

History

History
283 lines (252 loc) · 9.9 KB

community.missing_collection.minio_bucket_module.rst

File metadata and controls

283 lines (252 loc) · 9.9 KB

community.missing_collection.minio_bucket

Create/Update/Delete Minio Buckets.

Version added: 0.2.0

The below requirements are needed on the host that executes this module.

  • minio
Parameter Choices/Defaults Comments
bucket
string
name of the minio bucket.
endpoint
string / required
minio api endpoint.
location
string
Default:
"None"
location for bucket.
make_bucket
boolean
    Choices:
  • no
  • yes
create a given bucket, object_lock, and location?
object_lock
boolean
    Choices:
  • no ←
  • yes
do you want to enable object locking?
password
string / required
minio api endpoint password.

aliases: secret_key
remove_bucket
boolean
    Choices:
  • no
  • yes
do you want to delete a for given bucket?
secure
boolean
    Choices:
  • no ←
  • yes
do you want to enable https/tls connection?
set_bucket_tags
boolean
    Choices:
  • no
  • yes
do you want add tags to a given bucket and tags?
tags
dictionary
dictionary of tags.
It will overrite existing tags of given bucket.
username
string / required
minio api endpoint username.

aliases: access_key

- name: create bucket in minio
  community.missing_collection.minio_bucket:
    endpoint: "localhost:9000"
    username: minioadmin
    password: minioadmin
    make_bucket: true
    bucket: "test12"
    object_lock: false

- name: remove given bucket
  community.missing_collection.minio_bucket:
    endpoint: "localhost:9000"
    username: minioadmin
    password: minioadmin
    remove_bucket: true
    bucket: 'test5'

- name: set bucket tags
  community.missing_collection.minio_bucket:
    endpoint: "localhost:9000"
    username: minioadmin
    password: minioadmin
    set_bucket_tags: true
    bucket: 'test12'
    tags:
      project: "ansible"

Authors