Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
security: add dry run mode for external cluster script
Adding dry run mode for external cluster script. This will add cli argument `--dry-run`. By default `dry-run` option will be `False` which means it will only print something like below. ``` The script is checking conflicting options The script is running command ceph fs ls to fetch cephFS data pool details The script is getting fsid The script is running command ceph quorum_status to fetch ceph mon external data The script is running command ceph auth get-or-create client.healthchecker mon to fetch/create to key for rook external user The script is running command ceph mgr services to fetch mgr services The script is running command ceph auth get-or-create client.csi-rbd-node mon to fetch/create Ceph CSI keyring for RBD provisioner The script is running command ceph auth get-or-create client.csi-rbd-provisioner mon to fetch/create Ceph CSI keyring for RBD provisioner The script is running command ceph status to get mon endpoint and mon endpoint port None The script is checks if connected then shutdown ``` Signed-off-by: subhamkrai <srai@redhat.com>
- Loading branch information
1 parent
3d69e10
commit 0419bf9
Showing
2 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters