Hi Greetings. A question on rubrik modules (rubrikinc.cdm), are these still supported from Ansible .
Cheers
Thulsi Doss Krishnan
@Thulsi_Krishnan Welcome to the Ansible Forum.
The rubrikinc/rubrik-modules-for-ansible GitHub repo was archived on 1st December 2023, the last commit was 6 years ago.
I don’t see any information in the repo on why it was archived or where people should go.
@gundalow thanks for the response , would that mean that we can try to use these ansible modules
Our data protection team evaluated using the old Rubrik modules and found that many of the features wouldn’t work with our modern Rubrik environment. They opted to use the Rubrik PwSH module within the execution environment and run PwSH scripts/commands via the ansible shell module. You could also use a Windows-based jump host with the necessary PwSH modules installed. We looked at creating our own ansible role/module using the API but didn’t deem it worth the engineering time. I’m not a Rubrik expert so your milage may vary but wanted to pass along what we were doing since the collection appears to be unmaintained at this point.
Rubrik Security Cloud PowerShell Module - Rubrik Developer Center
Best regards,
Joe
Hi @iwt-cmd thanks for the reply. I have been searching for the cmd-let that registers a SQLserver host to the rubrik cluster for backup. Could you share that power shell cmd let.
Thanks
Thulsi Doss Krishnan
NP! Unfortunately, I’m not a Rubrik admin so not sure how SQL servers need to be added to the console for backups but here is a link to the Rubrik PwSH docs (Github only). I do see a “protect-rubrikdatabase” cmdlet which may be a good starting point.
Docs:
rubrik-sdk-for-powershell/docs/command-documentation/reference/README.md at devel · rubrikinc/rubrik-sdk-for-powershell
Protect-rubrikdatabase:
rubrik-sdk-for-powershell/docs/command-documentation/reference/protect-rubrikdatabase.md at devel · rubrikinc/rubrik-sdk-for-powershell
Note regarding auth: Once you create a service account on RSC, you’ll be able download an unencrypted JSON file which is then used with “Set-RscServiceAccountFile -InputFilePath /path/to/service_account.json”. This encrypts and places the JSON file in a path that “Connect-RSC” is expecting. From what we found, this only needs to be done once on whatever host is going to run the PwSH module.
thanks @iwt-cmd one of the things with Chat-GPT , Gemini is that we can discover stuff that could lead to the usage (here adding a host) . Thanks to ChatGPT i was able to discover New-RubrikHost | Rubrik SDK for PowerShell. Thanks for the response .