Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

security: add dry run mode for external cluster script #9189

Merged
merged 1 commit into from Dec 17, 2021

Commits on Dec 16, 2021

  1. 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.
    
    ```
    Execute: 'ceph fs ls'
    Execute: 'ceph fsid'
    Execute: 'ceph quorum_status'
    Execute: 'ceph auth get-or-create client.healthchecker mon allow r, allow command quorum_status,
    	allow command version mgr allow command config osd allow rwx pool=default.rgw.meta, allow r pool=
    	.rgw.root, allow rw pool=default.rgw.control, allow rx pool=default.rgw.log, allow x
    	pool=default.rgw.buckets.index'
    Execute: 'ceph mgr services'
    Execute: 'ceph auth get-or-create client.csi-rbd-node mon profile rbd osd profile rbd'
    Execute: 'ceph auth get-or-create client.csi-rbd-provisioner mon profile rbd mgr allow rw osd
    	profile rbd'
    Execute: 'ceph status'
    
    ```
    
    Signed-off-by: subhamkrai <srai@redhat.com>
    subhamkrai committed Dec 16, 2021
    Copy the full SHA
    c891ddb View commit details
    Browse the repository at this point in the history