dell / ansible-powerscale

PowerScale (Isilon) Ansible modules
GNU General Public License v3.0
29 stars 21 forks source link

[FEATURE]: S3 Bucket support #55

Closed MelvinSone closed 1 year ago

MelvinSone commented 1 year ago

The project dosen't support a S3 bucket configuration.

anupamaloke commented 1 year ago

@MelvinSone , thank you for submitting the feature request. Could you please provide a little more detail about the PowerScale version details that you are running? Also, from a S3 bucket configuration point of view, what are the key use-cases that you are looking to automate using ansible? These details would help us in prioritizing this accordingly for future releases.

MelvinSone commented 1 year ago

@anupamaloke oh sorry for the few information. Im running the latest Version of Dell's Powerscale. I wanted to automate the S3 Buckets, so that i can have different Buckets for my Kubernetes cluster. Right now we do it manually over the UI and its a bit slow in the process. And it would be better if we have our whole Powerscale in a IaC ansible role or playbook, for disaterrecovery. This is why i searched for an ansible-galaxy collection and found Dell Powerscale, but the S3 Bucket feature was missing this is the biggest part we're using on the Powerscale.

anupamaloke commented 1 year ago

@MelvinSone, thank you for sharing the details. I have added it to our backlog that we will prioritize and deliver over the next couple of releases. Just to reconfirm my understanding, following are the key features that you are looking to automate using ansible modules:

Also, are you looking for following S3 functionality as well to be supported with ansible:

MelvinSone commented 1 year ago

@anupamaloke You're right, i'm looking for all of the features you listed. Thanks for the fast reply. can't wait for the new Version of this ansible collection.

anupamaloke commented 1 year ago

@MelvinSone, S3 support is now available with v2.1.0 of the collection. Please checkout s3_bucket module

- name: Create S3 Bucket
  dellemc.powerscale.s3_bucket:
    onefs_host: "{{onefs_host}}"
    api_user: "{{api_user}}"
    api_password: "{{api_password}}"
    verify_ssl: "{{verify_ssl}}"
    s3_bucket_name: "Anisble_S3_bucket"
    path: "/sample_bucket_path"
    access_zone: "sample-zone"
    owner: "sample-user"
    description: "the S3 bucket created."
    object_acl_policy: "replace"
    acl:
      - permission: "READ"
        grantee:
          name: "everyone"
          type: "wellknown"
      - permission: "READ_ACL"
        grantee:
          name: "sample-user"
          type: "user"
          provider_type: "local"
        acl_state: "present"
    state: "present"
MelvinSone commented 1 year ago

@MelvinSone, S3 support is now available with v2.1.0 of the collection. Please checkout s3_bucket module

- name: Create S3 Bucket
  dellemc.powerscale.s3_bucket:
    onefs_host: "{{onefs_host}}"
    api_user: "{{api_user}}"
    api_password: "{{api_password}}"
    verify_ssl: "{{verify_ssl}}"
    s3_bucket_name: "Anisble_S3_bucket"
    path: "/sample_bucket_path"
    access_zone: "sample-zone"
    owner: "sample-user"
    description: "the S3 bucket created."
    object_acl_policy: "replace"
    acl:
      - permission: "READ"
        grantee:
          name: "everyone"
          type: "wellknown"
      - permission: "READ_ACL"
        grantee:
          name: "sample-user"
          type: "user"
          provider_type: "local"
        acl_state: "present"
    state: "present"

Thanks u really much for the fast implementation. I will test it tomorrow and give u a feedback.

anupamaloke commented 1 year ago

@MelvinSone, I am going to close this issue for now. Please feel free to raise a new feature request or an issue if you find something that is missing or not working as expected.