Start a Conversation

Solved!

Go to Solution

1359

August 11th, 2021 10:00

Isilon Ansible module isi smb share list command analog

Hey folks,

Can somebody tell me if the following is possible with Ansible module for Isilon please?

I have two Isilons and I want to gather SMB shares and permissions info from both of them, so I can compare that info in Python to find if they have differences in the configs. Is it possible to do something like that: "for e in `isi smb shares list --zone=$i --no-footer --no-header | awk '{print $'one'}'`; do echo "*$e" && isi smb shares permission list --share=$e && echo "\n"; done" with Ansible to get the output in yml?

Best regards,

Nik

August 16th, 2021 09:00

Hey Rajendra,

 

Thanks for your answer. 
I was asking for isi smb shares list and permission list commands analogs in Ansible Isilon module. The permissions are possible to gather using dellemc_powerscale_smb. And for the shares list I used dellemc_powerscale_gatherfacts with:

gather_subset:
- smb_shares 

For some reason dellemc_powerscale_gatherfacts description is missing on the official git page: ansible-powerscale/Product_Guide.md at master · dell/ansible-powerscale (github.com)

So I had to check its source code to find the subset parametr.

6 Posts

August 16th, 2021 08:00

Hi @isi_not_so_easy ,

Thanks for writing to us. 

We do not directly support this through Ansible module as we can manage only single isilon at a time.

How ever one way is to use global variables to store the result for each run on the multiple isilon s and use that to make the comparison.

Thanks

Rajendra

August 16th, 2021 09:00

Also it looks like there is no way to combine dellemc_powerscale_gatherfacts shares list output with dellemc_powerscale_smb permissions list functionality without additional python scripting. Anyway, no one said it would be easy

419 Posts

August 18th, 2021 09:00

Not sure if you're using the latest modules, but the latest are in collection format on galaxy here https://galaxy.ansible.com/dellemc/powerscale  any values you get back from a facts module or other module can be stored in ansible register and assigned to a fact for later use.  I've some examples for other products here, I'm not familar with Isilon,,   Check out this example where this is done heavily using api calls and out of the box modules from dell.  https://github.com/rawstorage/powermax_autozone/blob/main/tasks/main.yml 

No Events found!

Top